227k views
2 votes
Using Python Write an expression using Boolean operators that prints "Special number" if special_num is -99, 0, or 44.

Sample output with input: 17
Not special number

1 Answer

1 vote

special_num = int(input())

if special_num == -99 or special_num == 0 or special_num == 44:

print("Special number")

else:

print("Not special number")

I wrote the code so that the user enters a number of their choice. Best of luck.

User Omry Zobel
by
5.2k points