0
What am I doing wrong on 33.2
n = int(input()) nums = list(range(5,n,5)) for x in nums: print(x) Whats the problem with this code
6 Answers
+ 4
kyeshawn newby
I saw this question recently regarding a challenge.
If n = 15, then the challenge expects 5, 10, 15 as output, each on a separate line.
But your range will stop at 14 because it does not include the last number.
So you will need range(5,n+1,5)
+ 4
kyeshawn newby ,
can you please post a link to your latest try?
+ 3
Mustafa A ,
the indentation is correct, although the recommended size of indentation is 4 spaces.
+ 1
Probably the indentation of print(x). You should share the actual code.
+ 1
n = int(input())
for x in (range(5,n+1,5)):
print (x)
The n+1 worked
0
Yea its challenge 33.2 the input idk whats wrong