Answers for "python if data exists at index"

0

python if data exists at index

ar=[1,2,3]

try:
    t=ar[5]
except IndexError:
    print('sorry, no 5')
Posted by: Guest on May-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language