Jun-08-2020, 02:06 AM
1. in your code, it will print all numbers till end, excluding end and in your answer, it will print end also
2. keeping print statement outside for loop results in the whole thing printed in 1 time, but in the for loop
it will create rows till you reach your number
2. keeping print statement outside for loop results in the whole thing printed in 1 time, but in the for loop
it will create rows till you reach your number
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs