Answers for "python how to loop a program"

0

python for loop

for i in range(5):
  print(i)
# Output:
# 0
# 1
# 2
# 3
# 4
my_list = ["a", 1, True, 4.0, (0, 0)]
for i in my_list:
  print(i)
# Output:
# a
# 1
# True
# 4.0
# (0, 0)
Posted by: Guest on January-30-2021

Code answers related to "python how to loop a program"

Python Answers by Framework

Browse Popular Code Answers by Language