Question: BlockPy: #27.2) Driven to Drink - Coding in Python I posted the progamming problem I'm stuck with, the second picture is my attempt at it.

 BlockPy: #27.2) Driven to Drink - Coding in Python I postedthe progamming problem I'm stuck with, the second picture is my attemptat it. If you can also I'd appreciate help with the bottom

BlockPy: #27.2) Driven to Drink - Coding in Python

I posted the progamming problem I'm stuck with, the second picture is my attempt at it.

If you can also I'd appreciate help with the bottom chart, with understanding what values would go in where to better understand if statements.

Thanks

BlockPy: #27 2) Driven to Drink The following three conditions test if the user is allowed to drink. Move the conditions into the given if/else statements to make the code correctly print out whether the user can drink. Initialize the variables with values appropriate to yourself (or make up the details we don't want to pry). Server Saved Execution: Idle Console Feedback Syntax error Invalid syntax on line 6 Syntax Error Run Blocks SplitTextResetUpload Z History if: if if : - pass 5 else: 6 pass else: 8 pass 9 else: 10 pass 12 age >= 21 13 age1000 14 has_license 15 16 print "Too old") 17 print("Too young") 18 print("Doesn't have a license") 19 print ( "Can drink" has-license: if age>=21 If and age(1000 : if has license: pass else: print("Doesn't have a license") pass else: print("Too young") pass else:print("Can drink") pass age 21 age 1000 has license Fill out the trace table below by following the execution. If the value is not yet defhined, place an "X". 1 I salary-1000 2 | if salary 100 taxes-.5 taxes-.1 6 I salary-taxes salary 7 if salary 100: 8 if salary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!