+ 1

Does anyone knows how to use the function While?

I don’t know why is my While function not working, can anyone help me please. I start learning programming Today so Im new at all functions https://code.sololearn.com/cWzE3bEpPX2g/?ref=app

7th Oct 2020, 12:41 AM
Alejandra b
Alejandra b - avatar
2 Respostas
+ 2
Works fine, the thing is in sololearn you should write all the input in the beginning of the program so if you input a wrong password it will stay in the while loop and it will not find another input so it will tell you there is an error, but if you want to try it try writing many wrong password in different lines then in the last line write the correct one like this Hello Wrong password Still wrong london
7th Oct 2020, 1:18 AM
Ruba Kh
Ruba Kh - avatar
+ 2
it’s working
7th Oct 2020, 1:19 AM
Flash