0
Help
Am doing the py course challenges; What am I doing wrong here? https://code.sololearn.com/c10lzAO7zJf9/?ref=app
4 Answers
+ 4
You can make two conditions using 'and' in one if statement
and u are converting string to int which was of no use so no need to do that
See code this may helps
https://code.sololearn.com/cCTLEK5XLh1G/?ref=app
+ 9
Try to use str() so that you can access the len()
+ Ig you should re-read the comparison operator lesson!
So that you won't stuck again ;)
Hope helps âïž
+ 6
Line 7
if len(str(strng)) == 8:
Use == comparison operator . as you already converted string to int so you can't use len() on int type . so use str() to use len().
0
thanks a lot to all of you. so close I had it đ will view the comparison operator lesson đđŒ again - thanks all âđ
đ»đ