Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IndexError?
#1
import sys
a= int(sys.argv[1])
b= int(sys.arv[2])
c= int(sys.argv[3])
inorder = a<b<c or a>b>c
print(inorder)
Anyone can help me?
Reply
#2
What do you need help with?
Note, you should always post full traceback (if you get one) in error tags...
in this case you have misspelled sys.argv on line 3
Reply
#3
Perhaps there are one or two command line arguments and you try to get argv[3] when it does not exist.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

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