- 2

Please, can someone help me understand how to effectively use the input function in python. Mine is not really working.

9th Oct 2022, 4:39 PM
Rite Favour
9 Answers
+ 2
Can you be specific about your problem
9th Oct 2022, 5:27 PM
Prabhas Koya
+ 2
If you mean in Sololearn, the app works differently from running python on your computer. The Sololearn code playground needs all the inputs at the beginning, after you hit run.
9th Oct 2022, 5:45 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Alright. Thank you very much. I appreciate.
9th Oct 2022, 7:31 PM
Rite Favour
0
This is the code that I'm writing. prompt =input('What kind of rental car would you like? ') print(prompt) if prompt == 'volvo': print(f'\nIt is not available at the moment!') else: print(f'Let me see if I can find Sabaru.') When I click on run, it doesn't have a space for the user to input an answer.
9th Oct 2022, 4:55 PM
Rite Favour
0
Alright. Thanks But the actual problem is that I'm unable to write anything at the output terminal whenever I run the code.
9th Oct 2022, 5:17 PM
Rite Favour
0
prompt =input('What kind of rental car would you like? ') print(prompt) if prompt == 'volvo': print(f'\n It is not available at the moment!') else: print(f'\n Let me see if I can find Sabaru.')
11th Oct 2022, 6:40 AM
viswajeet
viswajeet - avatar
0
run above code
11th Oct 2022, 6:40 AM
viswajeet
viswajeet - avatar