ปลั๊กอินสำหรับไพธอน iterator
def iter(times):
it = 1
for i in range(times):
its = it * 2
it = its
return it
while True:
print()
print(iter(int(input("how many iteration? : "))))
iterable วัตถุ pytohn
Iterable objects, such as strings, lists, and tuples.