I want to get the output if the input value type is "Int" then print this message "please enter the string not integer" else calling the function.
It seems Python automatically takes the value type as "String". But I want to get the message like I mentioned if enter type. Please check the below code.
def strlength (string):
lengthstring = len(string)
return (lengthstring)
string = input("enter the string: ")
if type(string) == int:
print("please enter the string not integer")
else:
print(strlength(string))
Thank you in advance