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

Which two thing's are being compared in the poem "fog"?
what is the mole ratio of butane to carbon dioxide in the reaction shown above?
Lea says that (f°g)(x)=(g°f)(x). Do you agree with her or not? Explain.
select the correct spelling for the word that completes the sentence. the counselor has helped me through two _____ crisis. crises.
If a ball is thrown in the air with a velocity 44 ft/s, its height in feet t seconds later is given by y = 44t − 16t2.. (a) Find the average velocity for the t
Why is the patriot act controversial
In a typical e-mail address, the \"host\"is
if y = 1 i, then y3 − 3y2
An Australian emu is running due north in a straight line at a. speed of 13.0 m/s and slows down to a speed of 10.6 m/s in 4.0 s.. (a) What is the direction of
Which of the following should you ask yourself when analyzing structure? How are the sentences written—are they simple or complex, short and choppy,