Python Forum
Question about my code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about my code
#2
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
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
Reply


Messages In This Thread
Question about my code - by Than999 - Jun-07-2020, 11:42 PM
RE: Question about my code - by pyzyx3qwerty - Jun-08-2020, 02:06 AM
RE: Question about my code - by snippsat - Jun-08-2020, 03:07 AM
RE: Question about my code - by buran - Jun-08-2020, 03:52 AM
RE: Question about my code - by Emekadavid - Jun-08-2020, 06:28 PM
RE: Question about my code - by jefsummers - Jun-08-2020, 09:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020