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

What are some possibilities for handling conflict within a professional environment?
What are some ways in which companies can attract and retain employees
HELP! WILL UPVOTE! If the graph of y = |x| is translated so that the point (1, 1) is moved to (4, 1), what is the equation of the new graph? y = |x - 3| y = |x|
The ratio of the side lengths of a triangle is 2:3:4.the shortest side is 15 inches.what is the perimeter?
How do I figure out how to turn the 3/4 fraction to 1/4?
Where are the chromosomes of most organisms located?
Does the Constitution of the United States supports or/and agrees the people's rights?
The arteries that branch from the aorta and provide blood to the heart muscle itself are _______________ arteries.
When the liquid state and the gaseous state of a substance are in equilibrium the rate of evaporation is?
The area of the rectangle shown is 24 square inches. how much longer is its length than its width?