Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with for loops?
#2
(Sep-26-2018, 06:33 PM)Darbandiman123 Wrote: for i in (1,sides):
I don't think that does what you think that does.

>>> for x in (1, 4):
...   print(x)
...
1
4
Do you mean for i in range(1, sides)?
Reply


Messages In This Thread
problem with for loops? - by Darbandiman123 - Sep-26-2018, 06:33 PM
RE: problem with for loops? - by nilamo - Sep-26-2018, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fundamental understanding-problem regards to while-loops Placebo 7 3,988 Oct-11-2018, 01:18 PM
Last Post: Placebo

Forum Jump:

User Panel Messages

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