Boolean operators

Exercise 7. The 2nd step is confusing I followed the steps.

if credits >= 120 and [gpa >= 3.4]:
print(" You meet the requirements to graduate!")
I’m still getting an error saying ( Did you update the if statement to also check for gpa?)

Square brackets are for subscripting, or writing list literals. Technically there should be no brackets required since >= has precedence over and.

1 Like