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

The body of judge-made law that originated in england from decisions shaped according to prevailing custom is known as
PLS HELP!!!!! Thank You!!!!!
What type of writing is often censored because it deals with sensitive and controversial issues?
What's an example of situational at work place where an individual ethics could be in jeopardy?
what figure of speech is used in romeo and juilet
I need help please!!!!
Is the following relation a function?
Laura is baking a cake. The recipe says that she has to mix 64 grams of chocolate powder to the flour. Laura knows that 1 cup of that particular chocolate powde
HELP ME PLEASE!!!!
People high in social dominance orientation tend to support policies that _______ hierarchies and oppose policies that _______ hierarchies.