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
What leadership style involves the ideas of advice others
makvit [3.9K]
Democrat good luck dude
5 0
2 years ago
Word processing software, spreadsheet software, database software, and presentation software are examples of what category of co
wariber [46]
The correct answer is letter B. Application Software. Word Processing software, spreadsheet software, database software, and presentation software are examples of Application software. These are applications that are mostly output based.
8 0
3 years ago
What is the destination ip address when an ipv4 host sends a dhcpdiscover message?
hjlf

The destination ip address when an ipv4 host sends a DHCPDISCOVER message Because a DHCP client does not have a valid IPv4 address, it must use a broadcast IP address of 255.255. 255.255 as the destination address to communicate with the DHCP server.

<h3>What does the DHCP server do when it receives the Dhcpdiscover message?</h3>

When the lease has expired, the client must start over with the DHCPDISCOVER process. The client ends the lease by sending a DHCPRELEASE message to the DHCP server. The server will then return the client's IP address to the available address pool.

<h3>What is a Dhcpdiscover message?</h3>

The DHCPDISCOVER message contains an identifier unique to the client (typically the MAC address). The message might also contain other requests, such as requested options (for example, subnet mask, domain name server, domain name, or static route). The message is sent out as a broadcast.

To learn more about DHCPDISCOVER, refer

brainly.com/question/14407739

#SPJ4

8 0
1 year ago
Which two statements about using leased lines for your wan infrastructure are true? (?
Karo-lina-s [1.5K]
<span>The following statements are true: 1. Leased lines require little installation and maintenance expertise. ( A high service quality is offered by point-to point system) 2. Leased lines provide highly flexible bandwidth scaling. (This Allows a Constant availability)</span>
7 0
3 years ago
How does the zone theory of optical systems resolve the apparent incompatibility of trichromacy and opponency?
lara [203]

Answer:

Money money money

Explanation:

4 0
3 years ago
Other questions:
  • Create a Python program as described below and save it in a file named bool. You should use IDLE or similar environment to creat
    15·1 answer
  • Why was the term personal computer created?
    5·1 answer
  • Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one.
    11·1 answer
  • Kyle wants to access his school’s home page. How can he do this?
    8·2 answers
  • Jemima is reviewing her history report and notices that her headings are not formatted the same throughout the
    7·1 answer
  • Which questions should you ask yourself when performing research online?
    9·1 answer
  • Why are the READ and DATA statements used<br>together?​
    10·1 answer
  • Which part of the computer is responsible for managing memory allocation for all applications
    12·1 answer
  • Which of the following terms refers to the area of the hard drive used for virtual memory?
    13·1 answer
  • In order to see what the services status will be in a given runlevel, you would use what command?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!