# Take the number of available spaces as an input spaces = int(input()) # Display message if spaces are available if spaces <= | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

26th Sep 2023, 5:01 AM
Vii99
7 Answers
+ 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.
26th Sep 2023, 10:44 AM
Lothar
Lothar - avatar
+ 2
Thanks... Course: Introduction to Python Chapter: Control Flow Lesson name: (Practice) Smart parking lot.
26th Sep 2023, 11:11 AM
Vii99
+ 2
Hey guys thank you so much I already finished it.
26th Sep 2023, 1:03 PM
Vii99
+ 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
26th Sep 2023, 5:28 AM
Aaron Lee
Aaron Lee - avatar
+ 1
https://code.sololearn.com/cI4NTrLWAnJz/?ref=app
26th Sep 2023, 6:21 AM
Vii99
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?
26th Sep 2023, 12:48 PM
Aaron Lee
Aaron Lee - avatar