Question: I need to fix this syntax error with the python3.x below syntax error with the script: UnboundLocalError: local variable 'MedRent' referenced before assignment def somework(RentLevel):
I need to fix this syntax error with the python3.x below
syntax error with the script:
UnboundLocalError: local variable 'MedRent' referenced before assignment
def somework(RentLevel): if 0
RentLevel = "Low" return RentLeve1 elif 700 < MedRent <=1000:
MedRent = "Med"
elif MedRent > 1000:
RentLevel = "High"
else:
RentLevel = "Unknown"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
