Try B 2 Print Worked S Except Valueerror Print Itdidn T Q27789456

try: b = a[2] print (that worked! s except ValueError print(no itdidnt!)

What does the following snippet of code do?

try: b = a[2] print (‘that worked! s except ValueError print(“no itdidn’t!”) Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *