what does till do in python code example
Example 1: python for loop
nums = ['one', 'two', 'three']
for elem in nums:
print(elem)
Example 2: how to do a for loop python
print(range(4))
>>> [0,1,2,3]
print(range(1,4))
>>> [1,2,3]
print(range(2,10,2))
>>> [2,4,6,8]