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 product [tex](n+bvx^{2}) (5n+3bvx^{2} )[/tex]
what is the original price if there is a 10% discount and the sale price is $76.50
Beth filled 31 jars with paint if each jar holds 1 pint of paint how many gallons of paint did Beth use?
Frankie can plant a garden by herself in 10 hours. when her son Garyn helps her, the total time it takes them to plant the garden is 4 hours. how long would it
Evaluate the expression
A human's most rapid growth, both physically and mentally, occurs between and years old.
how to divied 23 over 45
Which statements best describe how businesses can take advantage of globalization? Check all that apply. using lower labor costs in other countries creating h
8.5b−3.4∙(13a−3.2b)+a
Last Saturday there were 1486 people at the Simplex there were about the same number of people in each of the Six Theaters which is the best estimate of the num