1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vinvika [58]
3 years ago
12

Write an expression using membership operators that prints "Special number" if special_num is one of the special numbers stored

in the list special_list = [-99, 0, or 44]. Sample output with input: 17
Computers and Technology
1 answer:
Maru [420]3 years ago
8 0

Answer:  

   Following are the program in Python language

special_list= [-99, 0, 44] # as mention in the question  

special_num = int(input()) # taking the user input..  

if special_num not in special_list: # checking the condition  

   print('not Special number') #display message  

else:

   print('special number') #display message  

Output:

523

not Special number

-99

special number

Explanation:

   Following are the description of the program.

  • Declared an array special_list and store integer value.
  • Read the integer value by using input function and store them into special_num variable.
  • Check the condition if number exits in array it print special number otherwise not Special number.
You might be interested in
​In sql server, the cursor property ____________________ means that the cursor is used for retrieval purposes only.
enyata [817]
I have recently found this answer https://assignment.essayshark.com/blog/sql-simple-examples-database/. Then provided me with a ready assignment in a very short period of time.

5 0
3 years ago
With _______, applications are owned, delivered and managed remotely by one or more providers over the Internet or an intranet,
vfiekz [6]

Answer:

EMAIL

Explanation:

3 0
3 years ago
A server-side extension ________________. provides its services to the web server in a way that is totally transparent to the cl
damaskus [11]
A: provides its services to the Web server in a way that is totally transparent to the client browser.
8 0
3 years ago
How do we make a acount
IRISSAK [1]
Press sign up and put your information in there. Then it should automatically make your profile.
8 0
3 years ago
Read 2 more answers
Briefly explain specialisation?​
Jlenok [28]

Answer:

b

Explanation:

4 0
3 years ago
Other questions:
  • Mara's presentation included essential information about the company's new safety procedures. She wanted to make
    13·2 answers
  • Press the ____ key(s) to erase one character to the left of the insertion point.
    10·2 answers
  • How is a ink pen better than a digital pen.
    8·1 answer
  • What are the five types of alignment in Word?
    12·2 answers
  • When clients connect to a web server using the _________ method, the server logs them on using the iusr account, by default?
    14·1 answer
  • The force required to slide an object is equal to _____.
    13·1 answer
  • In the following code: function drawCircle(radius, x, y, color) { var circle = new Circle(radius); circle.setPosition(x, y); cir
    7·1 answer
  • A swimming pool has a length of 28 feet, a width of 17 feet, and a depth of 6 feet. How much water can the swimming pool hold?
    10·1 answer
  • A ____ is a a set of presentation rules that control how text should look. It is applied to an XML file to change the collection
    9·1 answer
  • How does Shakespeare immediately introduce Tybalt as a menacing character?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!