GUVI
Back

String codekata palindrome Or not

Created 2 years ago
88 Views
1 Comments
PraveenkumarC
@PraveenkumarC
PraveenkumarC
@PraveenkumarCProfile is locked. Login

Test case one write but test case 2 is wrong My program is

string='NITIN'

string=string.casefold() rev_str=reversed(string)

if list(string) == list(rev_str):

print("1")

else:

print ("0")

Plz help 🙏

Comments
Please login to comment.
 
Powered by habitate.io Habitate