+ 2

Help for playground

 how to check if length of string is equal to or greater than five

12th Jan 2021, 7:55 AM
Yusuf M Hashmi
Yusuf M Hashmi - avatar
2 Answers
+ 7
len(string) - to find the length of the string >= greater or equal. I think you should review your lessons/courses next time. Hope this helps https://www.sololearn.com/learn/Python/2276/
12th Jan 2021, 8:05 AM
noteve
noteve - avatar
+ 4
The length of a string can be obtained using the len() function. Example len("hello") // returns 5 All this is covered in the course. From you profile I can see that you are more than halfway through the course. You should've known about this by now.
12th Jan 2021, 8:06 AM
XXX
XXX - avatar