ShriRam Changed status to publish August 21, 2023
# Define a function here.
def temp_convert(var):
try:
return int(var)
except ValueError as Argument:
print (“The argument does not contain numbers\n”, Argument)
# Call above function here.
temp_convert(“xyz”)
ShriRam Changed status to publish August 21, 2023