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

Where is Mediterranean Sea
Ardhangini ka sandhi viched​
What Is sonar method ?​
Question 2 of 15 Which statement is true of both nuclear fusion and nuclear fission? A. The nucleons in the resulting nuclei differ from the nucleons in the ori
Tommy starts walking from school to home at the same time that his Dad starts walking from home to school. They both depart at 3:00 p.m. Tommy is walking at a s
The Earth moves round the sun. a,simple past b,past perfect c,simple present d,past future perfect​
Which type of information systems personnel would design and test wired and wireless systems to improve communications between computers and software? A. Databa
Which is the distance betweeen parallel lines with the equations y=-1/3x+3 and y=-1/3x-7
Read the excerpt from "The Danger of a Single Story” by Chimamanda Ngozi Adichie. Stories matter. Many stories matter. Stories have been used to dispossess and
Write the following inverse proportion: y is inversely proportional to x³. When y = 15, x = 23. 15/1 = k/23^3