Exception Handling

I have problem to solve this Question of Assignment-6

Write a program to input a string from the user evaluate using Try and Except

Can you please give me the Solution of this question… :speech_balloon: