Page 1 of 1

Python: Boolean Statements - Review

Posted: Wed Aug 19, 2026 10:47 pm
by The Jason

Code: Select all

print("Please guess in your head.  Are the Phoenix Suns basketball team from New Mexico?")

are_the_Pheonix_Suns_from_New_Mexico = bool(False)

if are_the_Phoenix_Suns_from_New_Mexico:

	print("No, the Phoenix Suns are NOT from New Mexico.")
	
else:

	print("The Phoenix Suns are from Arizona, not New Mexico")
	
# The else statement will always run due to this NOT being an input boolean statement.