@@ -0,0 +1,587 @@
+nums = %5B55, 44, 33, 22, 11%5D%0A%0Aif all(%5Bi %3E 5 for i in nums%5D):%0A   print(%22All larger than 5%22)%0A%0Aif any(%5Bi %25 2 == 0 for i in nums%5D):%0A   print(%22At least one is even%22)%0A%0Afor v in enumerate(nums):%0A   print(v)%0A%0A## all = take all iterable and check, say you wanna check 5 item in the list and make sure all is true, use all%0A## any = take some of the iterable and check, say you wanna check if one of the 5 item in the list is true, use any%0A%0A## For example%0A%0Aa = %5B1,2,3,4,5,8,9,10%5D%0A%0Aif any(%5Bi %3C 3 for i in a%5D):%0A%09print('bing')%0A%0Aif all(%5Blen(a) == 8 for i in a%5D):%0A%09print('good')%0Aelse:%0A%09print('not good')%0A

Create all_any.py