I'm a beginner and my function doesn't work. I don't what I missed in it:
def string_length(stri):
if stri == int:
print(" not a string")
else:
print(len(stri), stri)
stri = str(input("please write a string: "))
string_length(stri)
in a few, the if statement it's ignored if I write an integer.