Answers for "build a for loop"

2

python for loop

for i in range(range_start, range_end):
  #do stuff here
  print(1)
Posted by: Guest on January-22-2021
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 "build a for loop"

Python Answers by Framework

Browse Popular Code Answers by Language