asked 70.9k views
0 votes
What is the output to the following code? age = 15 age_to_drive = 16

if age == age_to_drive: print (age == age_to_drive) print("I drove before 15") a. True I drove before 15 b. False c.I drove before 15 d. True

1 Answer

4 votes

Based on the given code:

```
age = 15
age_to_drive = 16

if age == age_to_drive:
print(age == age_to_drive)
print("I drove before 15")
```

The output will be:

b. False

This is because the condition `age == age_to_drive` is not true (15 is not equal to 16), so the lines inside the 'if' statement will not be executed.

answered
User PeaGon
by
7.8k points

No related questions found