for loop in python
for x in range(6):
print(x)
python for loop
# if you want to get items and index at the same time,
# use enumerate
fruits = ['Apple','Banana','Orange']
for indx, fruit in enumerate(fruits):
print(fruit, 'index:', indx)
python for loop
for item in ['mosh','john','sarah']:
print(item)
how to make loops in python
for x in range(0, 3):
print("We're on time %d" % (x))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us