Question: Debugging The following code is intended to help a bouncer manage PyNightclub. Under 1 8 ' s are not allowed entry. 1 8 - 2
Debugging
The following code is intended to help a bouncer manage PyNightclub.
Under s are not allowed entry. year olds may only enter the 'limited' section, but patrons aged get full access.
Copy the code into your programs.py file and test it
In the comments below the code, list all the values that you should and did test with.
Remember that we have taught systematic ways to test code, so there should be no guesswork here.
Once you have run your tests, see if you can fix any errors in the best way possible.
Change the provided code and submit your improved code.
Test again with the good test values that you determined above.
# Debugging
age intinputAge:
if age :
printEntry refused"
elif age :
printLimited entry allowed"
elif age :
printFull entry allowed"
# Test values:
# Input and expected outcomes
#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
