Python Forum
switch case with range
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
switch case with range
#2
It seems that you are using Python 2.x, since range(2, 5) isn't hashable and doesn't work.
Switch to Python 3.x (better), or use xrange instead.
Reply


Messages In This Thread
switch case with range - by jun - Feb-26-2019, 09:54 PM
RE: switch case with range - by scidam - Feb-26-2019, 11:04 PM
RE: switch case with range - by ichabod801 - Feb-27-2019, 04:48 AM
RE: switch case with range - by scidam - Feb-27-2019, 05:35 AM

Forum Jump:

User Panel Messages

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