+ 1
# Take the number of available spaces as an input spaces = int(input()) # Display message if spaces are available if spaces <=
How do you guyz solve this. Thanks. The problem is the int(input()) part the app has a bug.
7 Réponses
+ 4
Vii99 ,
your post seems to be incomplete. it should include:
> the programming language (to be placed in tags)
> if your post is related to a sololearn tutorial, we need to know the name of it, also the chapter and lesson name.
according to your last code sample: (don't get confused by the samples in the exercise)
> if input value is greater or equal to 1: space is available
> otherwise: no space is available.
+ 2
Thanks...
Course: Introduction to Python
Chapter: Control Flow
Lesson name: (Practice) Smart parking lot.
+ 2
Hey guys thank you so much I already finished it.
+ 1
Can you provide more information? Can you show what you've tried, even if it is causing an error?
If you know the int(input()) is the problem, what have you tried to remedy this?
Is there more to the code you included above?
Please use the code playground and save your code then link it here
+ 1
https://code.sololearn.com/cI4NTrLWAnJz/?ref=app
0
Vii99, your answer code is very close, when the input is 10, the output is "available spaces"(which is correct). But when the input is 25, the output is "no available spaces" (incorrect).
If the number you put into your code as input is how many spaces are available to park in, how many spaces would there be if the parking lot is full?