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

Any change that alters a substance without changing it into another substance is an change
In which of the following units is acceleration expressed? A. Kilograms B. Foot-pounds C. Meters per second squared D. Newtons
What is the difference between phototroph and chemotroph
243.875 to nearest tenth, hundredth, ten, and hundred.
What is the product in lowest terms? -5/12 x 8/13 A. -20/39 B. -10/39 C. -5/39 D. 3/25
why do the properties of elements change in a regular way across a period
Which colorless and odorless gas, produced by radioactive decay of Uranium-238, is considered to be a cancer-causing agent? A. Radon B. Oxygen C. Hydrogen D
The available source of charge that pushes a charge through a circuit is A. alternating current. B. direct current. C. voltage. D. resistance.
the unit rate for 346 miles on22 gallons
What is the fractional notation of 82.5%