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

Find the sales tax and the total bill on an order of office supplies costing $63.27 if the tax rate is 7% What is the sales tax?
1. Describe Rutherford's nuclear model.
Solve this ratio 6 weeks to 48 days as a fraction in simplest form pls
" According to the U.S. Census Bureau, the population of the United States in 2010 was 308.75 million people. The rate of growth in population was 0.57% per yea
Question 8 Which equation is NOT a linear function?
How can I use if else if I have more than two conditions to put in my program​
An adiabatic air compressor is to be powered by a direct coupled adiabatic steam turbine that is also driving a generator. Steam enters the turbine at 12.5 MPa
Please help me and please answer both questions
Painter Paul paints walls. It takes Painter Paul 15 minutes to paint 60 square feet of wall. How much wall could Painter Paul paint in one minute?
Which of the following solutions would you expect not to conduct electricity?