python for loop jump by 2
for i in range(0,10,2):
print(i)
python for loop jump by 2
for i in range(0,10,2):
print(i)
how to print a number at the end of a for loop in python
for i in range(1,4):
if i == 3:
print(i)
python for loop with step
for i in xrange(0,10,2):
print(i)
Range python iterate by 2
for i in range(0,10,2):
print(i)
steps in for loop python
list_1 = [9, 5, 7, 2, 5, 3, 8, 14, 6, 11]
for i in range(0, len(list_1), 2) :
print(list_1[i])
2 is the steps
output:
9
7
5
8
6
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