0
I’m learning to code in Python.
Right now I need to implement a class that has the following features:
A class called parking, which simulates the operation of a car park.
-The class receives an integer and determines the capacity of the park
-The class returns an object with the following methods: Entra(): corresponds to the entrance of a car
-Sai(): corresponds to the exit of a car
-Seats(): indicates the number of free parking spaces.
I’m having trouble creating the code.
I can’t seem to get The class receives an integer and determines the capacity of the park
You can edit your question to include what you’ve tried and where it didn’t work?
– Pedro von Hertwig Batista
I already put the code there. however I am not being able to input the integer.
– Joao Peixoto Fernandes