Python for loop prints only one number instead of multiple values [closed]

16 hours ago 1
ARTICLE AD BOX

in order to print numbers from 1 to 5 you should change the 1 inside the print statement to i .

the final code look like this:

for i in range(1, 5): print(i)

amir sobhan ahmadi's user avatar

Read Entire Article