Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error while using the try
#1
When trying to run this portion of code, I received= default 'except:' must be last


try:
range2 = int(input('Enter Low Range:'))
except:
print("You have to enter a number")
range1 = int(input('Enter High Range:'))
except:
print("You have to enter a number")


Please advise
Reply


Messages In This Thread
error while using the try - by it1mbrown - Mar-26-2020, 01:20 AM
RE: error while using the try - by BUKHARI - Mar-26-2020, 01:51 AM
RE: error while using the try - by it1mbrown - Mar-27-2020, 01:54 AM

Forum Jump:

User Panel Messages

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