0

Python for beginners exercise 13

Why dont work https://code.sololearn.com/cNaqp1JS7351/?ref=app instead same in range 0, 9 to print numbers from 1. To 9. ?

5th Nov 2021, 9:56 PM
Radoslav Bekyarov
Radoslav Bekyarov - avatar
1 Antwort
+ 1
1. Reread the question and take another look at your code. 1 to 9 (inclusive) FYI, you could start your range at 1, thus avoiding the +1 and the use of the sum variable (which is a bad name for a variable in python as it shadows the built-in sum function) 2. The shouldn't be a '\n' after the last number output.
5th Nov 2021, 10:37 PM
ChaoticDawg
ChaoticDawg - avatar