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. ?
1 Odpowiedź
+ 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.