parkeraatwood parkeraatwood
  • 12-11-2020
  • Computers and Technology
contestada

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

Respuesta :

Cytokine
Cytokine Cytokine
  • 12-11-2020

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.

Answer Link

Otras preguntas

Which describes a geographic reason for the differences in the way Native American groups lived?
Early Century to World War I 1. In 1917, Czar Nicholas II abdicated his throne after hundreds of thousands of Russians protested in Petrograd, Russia's capital.
which one of the following root words means"time"? A. andro- B. cord- C. kudo- D. chron-
what times what equals 56
Which word best completes the sentence? My uncle's homemade chili is less spicy than my __________. A. friend B. friend's C. friends
round 17.64 to the nearest whole number
Which word is the conjunction in this sentence? Penelope took the milk out of the fridge and left it on the counter. A. and B. out C. on D. took
PLEASE HELP ALGEBRA 21. After 3 years, what is the total amount of an investment of $2500 in an account paying 2.5% interest, compounded quarterly? 2. What is t
I am a solid figure with two congruent polygons that are bases connected with lateral faces that are rectangles
describe the skeletal system,and list four functions of bones