x = str(input("type a letter : "))
if x == x.islower:
print ("capital")
else:
print("small")
This is my code I wanna tell a letter is capital or small but Idk what’s the problem
>Solution :
There are some basic logical and syntactic mistakes in your code .This would fix your code:
x = str(input("type a letter : "))
if x.islower():
print ("small")
else:
print("capital")