So I'm designing a function for school that needs to take an argument (bool) that in this case would indicate if someone refused a BAC test (true/false) I don't have much experience with bool values, so I'm just wondering what the syntax would be, based off my function. If false, I plan on printing 'fail' before all the other elif/if statements
Thanks, and let me know if you need more info!
def print_roadside_penalty(bac: int, in_num: int, sam_prov: bool):
if ......
elif bac < 50:
print('no penalty')
elif bac >= 80:
print (fail)
elif in_num == 1:
print('Driving Prohibition Length: 3 days \nVehicle Impoundment Length: 3 days \nPenalties and Fees: $600')
elif in_num == 2:
print('Driving Prohibition Length: 7 days \nVehicle Impoundment Length: 7 days \nPenalties and Fees: $780')
elif in_num == 3:
print('Driving Prohibition Length: 30 days \nVehicle Impoundment Length: 30 days \nPenalties and Fees: $1430')