Dec-10-2020, 02:48 PM
(This post was last modified: Dec-10-2020, 02:48 PM by Asadzangibaloch.)
if string 1 length is greater than print true else false. but there is a problem can u please help me
invalid syntax in line 5
1- string1=input("Enter a word: ")
2- string2=input("Please enter another word: ")
3- if len(string1) > len(string2):
4- print("True")
5- else:
6- print("false")
invalid syntax in line 5
1- string1=input("Enter a word: ")
2- string2=input("Please enter another word: ")
3- if len(string1) > len(string2):
4- print("True")
5- else:
6- print("false")