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

state the slope and y-intercept (y=mx+b) 10. y=x+8 11. y= -5/2x-2 12. y=1/3x 13. y=-9x
-5x+y=-2 -3x+6y=-12 Solve by using substitution.
Write and simplify. Thank you! :)
Extinction occurs when a ________ is no longer paired with a ________.
Suppose you roll two dice. How many different ways can you roll the dice so that their sum is 2?
Please answer this question, and explain it to me as well how you got the answer. "Sometimes you can simplify fractions before you multiply them. How would you
identify the underline portion of the sentence below cross country skiing is one of the best cardiovascular activities THAT YOU CAN DO the bold is the underline
If n is an odd number greater than or equal to 3, can n + 1 ever be prime? What if n equals 1?
The number 0.86421... is an example of what number
this week maddie worked 2 1/2 hours on monday, 2 2/3 hours on tuesday and 3 1/4 hours on wednesday. how many more hours will maddie need to work this week to ma