python for in method code example Example: for in pthon num_list = range(10) for num in list: print(num)