Write a python program to find whether two string contains equal number of characters or not | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Write a python program to find whether two string contains equal number of characters or not

I need this pla help me

23rd Oct 2020, 1:28 PM
Shadow Warrior
3 Answers
+ 3
Just use len function if len(string1)==len(string2): print("Yes They are equal") else: print("No They Are Not Equal") Hope It Helps You 😊
23rd Oct 2020, 1:45 PM
Hacker Badshah
Hacker Badshah - avatar
+ 5
Pls use the description section to post ur try(code) so that we can help with that. I will give u a hint: use length to compare length of 2 strings
23rd Oct 2020, 1:31 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Thank you so much Hacker Badshah and Alphin K Sajan
23rd Oct 2020, 2:00 PM
Shadow Warrior