Module 6 assignment questions

Good Afternoon,
Mujhe in 2 questions me problem ho Rahi hai please help

Q.1. Write a programme to input a string fom the user evaluate using try and Except.
Q.2. Write a programme to input two number from the user and handle your exception using Else part not Except part.

try:
a = str(input(“Enter the value of X :”))
b = str(input(“Enter the value of Y :”))

print("X : ",a)
print("Y : ",b)   

except Exception as e :
print(“Exception value is not string caught :”,e)

print(“byy”)