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

Pairs of magnets are shown in the diagram. Bar magnets lined up vertically side by side in pairs. The first pair is labeled W with the north pole beside the so
Wolfpack Construction has the following account balances at the end of the year. Accounts Balances Equipment $25,000 Accounts payable
Can any one help asap please
Using the following image, solve the problems below given that U is the midpoint point of TV.
n a piece of paper draw segment AB and its midpoint D.Then draw the perpendicular bisector of segment AB and name it ine CD|/n your journal, write a proof that
what is five and five sixths divided by five twelfths?
1) Write these using index notation: a. 2 X 2 X 2 X 2 b. 5 X 5 X 5 X 7 X 7
how do I find the angles of a triangle when given all the lengths and no angle?​
Which of the following is not a reason why the natural rate of unemployment can change over time? Select the correct answer below: a. age-related demographic c
If f(x) = 3x2 + 1 and g(x) = 1 - x, what is the value of (f - g)(2)