Python For Loop Using range function to output all items in the list


Python For Loop using the range function to output all items in the list

Program
# To use range function to output all items in the list. # We can use List() print(list(range(7))) print(list(range(3,6))) print(list(range(3,11,2)))
Input
Output