index error
Title
Question
C:\Users\user>python automate_test_gcd.py
Test passed 4
Traceback (most recent call last):
File "automate_test_gcd.py", line 11, in <module>
x, y = int(numbers[0]) , int(numbers[1])
Test passed 4
Traceback (most recent call last):
File "automate_test_gcd.py", line 11, in <module>
x, y = int(numbers[0]) , int(numbers[1])
IndexError: list index out of range
please help to solve the error
Python-3.4.3 Testing-and-Debugging 03-04 min 50-60 sec
Answers:
Please ensure that your numbers list has two elements. It looks like your numbers list does not have the necessary number of elements
Login to add comment