03 Learn Python by real examples: Comments and if

Опубликовано: 13 Июнь 2026
на канале: TeachSmartLearnSmart
50
2

This program checks if the sport the user enters is one of the three most popular sports in the world or not.
football, cricket and hockey


print("Popular sport checker!")
sportName = input("Enter the sport name! ")

if sportName == "football" or sportName == "cricket" or sportName == "hockey":
print(sportName +" is one of the most popular sports in the world.")
else:
print(sportName +" is NOT one of the most popular sports in the world.")