- 2
Please, can someone help me understand how to effectively use the input function in python. Mine is not really working.
9 odpowiedzi
+ 2
Can you be specific about your problem
+ 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.
+ 1
Alright.
Thank you very much.
I appreciate.
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.
0
Alright. Thanks
But the actual problem is that I'm unable to write anything at the output terminal whenever I run the code.
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.')
0
run above code