0

Help

Am doing the py course challenges; What am I doing wrong here? https://code.sololearn.com/c10lzAO7zJf9/?ref=app

4th Dec 2020, 4:49 AM
mpssolutionsdk
mpssolutionsdk - avatar
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
4th Dec 2020, 5:04 AM
Piyush
Piyush - avatar
+ 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 ✌
4th Dec 2020, 6:12 AM
Piyush
Piyush - avatar
+ 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().
4th Dec 2020, 5:03 AM
TOLUENE
TOLUENE - avatar
0
thanks a lot to all of you. so close I had it 😖 will view the comparison operator lesson đŸ‘đŸŒ again - thanks all âœŠđŸŽ…đŸ»đŸ‘Œ
4th Dec 2020, 6:30 AM
mpssolutionsdk
mpssolutionsdk - avatar