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

pls answer 45 points!!!!!!
What is the difference between a civil case and a criminal case? A) Criminal cases deal with someone who is accused of breaking the law, while civil cases deal
Find the slope and the y intercept of the equation-4y-2x=-7
Name a type of person or group and the region of the U.S. that the author is fed up with
What are the goals of network security and what sorts of attacks do you need to defend against
Please help me with the test
Mia is making a batch of chocolate chip cookies. The recipe requires 2 cups of flour. However, she only has 1 cup of flour at home. Mia decides to go to the sto
any help appreciated
A graduated cylinder contained 30 ml of water before a stopper was added. After the addition of the stopper, the water level was 33 ml. The volume of the stoppe
A shop has an event where 80 items are on sale. Each item is discounted by up to £60. a) Find the upper and lower quartiles of the discounts. b) Find the interq