Raise in python ➖
# a = input()
# b = int(input())
# if b == 0:
# raise ZeroDivisionError("B is zero we will stop the program")
# if a.isnumeric():
# # custom aur exeception ko dekhane ke kaam atta hai
# raise Exception("Number is not allowed")
# print("Exeception handled")
# Task:-
#
# dict_val = {"vishal":34,"dada":23,"kaka":45}
# print("Enter name")
# a = input()
# try:
# dict_val[a]
# except Exception as e:
# raise KeyError("Key not exists")
print("Enter first name ")
t = input()
print("Enter last name")
v = int(input())
try:
print(t+v)
except Exception as e:
raise TypeError("The type of the 2 valu is not match")
Thanks you for commenting your questions. I will see question and respond you.