Question: Unused Variable The function assert _ equal was given a definition on line 1 , ?but was never used after that. THistory from cisc 1

Unused Variable

The function assert_equal was given a definition on line 1, ?but was never used after that.

THistory

from cisc108 ?import assert_equal

2

def can_drink(age, ?has_license):

if age ?21 ?:

if age1000:

if has_license:

return "Can drink"

else:

return "doesnt have license"

else:

return "too old"

else:

return "too young"

age =21

has_license= ?True

16

set se 000 " Import datasets ve license " Feedback: Unused Variable

set se 000 " Import datasets ve license " Feedback: Unused Variable The function assert_equal was given a definition on line 1, but was never used after that. Upload 1 from cisc108 import assert_equal 234 SON History 3 def can_drink (age, has_license): 5 6 if age>=21: if age

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 Programming Questions!