Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Not sure how to fix this loop
Post: RE: Not sure how to fix this loop

In error you get, is an information, that you tried to give "d" in a command line, and convert it to an integer. That, of course, can't work. Maybe would be some idea to make some small check what you...
striver General Coding Help 3 2,530 May-09-2018, 06:55 AM
    Thread: Help with loop
Post: RE: Help with loop

Like that for nr in range(0, 100): if nr < 10:\ print(" ", end="") print(nr, end=" ") if nr % 10 == 9: print()
striver Homework 13 6,312 Nov-26-2017, 08:49 PM
    Thread: Help with loop
Post: RE: Help with loop

Try that for nr in range(1, 100): print(nr, end=" ") if nr % 10 == 9: print()1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 3...
striver Homework 13 6,312 Nov-26-2017, 07:18 PM
    Thread: For Loop Help
Post: RE: For Loop Help

First parameter in a range is the start of an iteration, second is the end and third is a step, so in your example: * beginning is a length of text-1 * end is on 0 (step before -1) * step is -1 e.g. ...
striver General Coding Help 3 3,363 Aug-09-2017, 12:24 PM

User Panel Messages

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