+ 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
2 Respostas
+ 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/JUMP_LINK__&&__Python__&&__JUMP_LINK/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