Question: b Q1: Write a Python code to do the following: ( 7 marks) Handle the exception that could happen in this code: 6 marks word=input

b
b Q1: Write a Python code to do the following: ( 7

Q1: Write a Python code to do the following: ( 7 marks) Handle the exception that could happen in this code: 6 marks word=input ("enter the a word") i=int (input ("enter the index ")) print ("the letter is :") print ( word[i]) - If the code doesn't raise any exception print ("It's OK") . 1mark ist of exceptions that you can use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!