0

The problem with my ai assistant!!!!!

I want to make it so that it takes the input and opens respectively but as soon as it goes in the loop it just doesn't seem to take a second input!? https://code.sololearn.com/cK8MQy1jy9U7/?ref=app

11th Sep 2022, 11:12 AM
Kaushik
Kaushik - avatar
2 odpowiedzi
+ 2
You are using continue in elif blocks but continue will not taking any input so input value won't change so that's repeated for ever.. Only use continue in else block. Use break instead of continue in elif blocks.. And if you want to continue loop then ask input again before or start continuing!!!! Otherwise no need loop... and don't use predefined variable names as your variables. It may behave indifferent means overrides.
11th Sep 2022, 11:49 AM
Jayakrishna 🇮🇳
0
My AI is not working please help me
9th Oct 2023, 2:21 PM
Feruza
Feruza - avatar