Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pattern question
#2
for j in range(n, 0 -1):
A comma is missing:
for j in range(n, 0, -1):
range accepts one, two or three arguments.

This code: range(n, 0 -1)
Is evaluated to: range(n, -1)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
pattern question - by spalisetty06 - Jul-24-2020, 10:47 AM
RE: pattern question - by DeaD_EyE - Jul-24-2020, 12:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pattern question spalisetty06 2 2,294 Jul-24-2020, 10:28 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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