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
tangare [24]
3 years ago
7

Write a function called is_present that takes in two parameters: an integer and a list of integers (NOTE that the first paramete

r should be the integer and the second parameter should be the list) and returns True if the integer is present in the list and returns False if the integer is not present in the list. You can pick everything about the parameter name and how you write the body of the function, but it must be called is_present. The code challenge will call your is_present function with many inputs and check that it behaves correctly on all of them. The code to read in the inputs from the user and to print the output is already written in the backend. Your task is to only write the is_present function.
Computers and Technology
1 answer:
Agata [3.3K]3 years ago
7 0

Answer:

The function in python is as follows

def is_present(num,list):

    stat = False

    if num in list:

         stat = True

       

    return bool(stat)

Explanation:

This defines the function

def is_present(num,list):

This initializes a boolean variable to false

    stat = False

If the integer number is present in the list

    if num in list:

This boolean variable is updated to true

         stat = True

This returns true or false        

    return bool(stat)

You might be interested in
Dillion’s company has decided it wants to find a way to do a better job of tracking clothing inventories. Dillon has been asked
viktelen [127]

Dylan should recommend RFID tags to his company to help track the clothing inventories

Explanation:

RFID which stands for Radio Frequency Identification is a technology that allows any kind of objects to be wirelessly identified using data that is transmitted through radio waves. Compare RFID tags to bar codes but with a few more advantages. This same technology is used by companies a lot of times when tracking inventory. It sort of has what people call the reader and the transponder. The reader can scan the inventory from as far as 3 meters away through ultra-radio frequency. The data can then be passed through the transponder that processes the data into meaningful information.

Its effectiveness as compared to bar codes will help Dillion’s company go a long way in helping track their clothing inventories.

Learn more about RFID tags by clicking on the links below

brainly.com/question/13117502

brainly.com/question/3254289

brainly.com/question/14262902

#LearnWithBrainly

7 0
4 years ago
Which model represents scenarios thatchange over time?
Alex17521 [72]

Answer: Dynamic models represents scenarios that changes over time.

Explanation:

As, dynamic model is used to represent the scenarios and the behavior of an object or structure over time. It is used to describe the one or more elements over the time as a set of states that occurred in a proper sequence. Dynamic model is the simple representation of real world entity.

7 0
3 years ago
Which type of cause and effect organizer would be best for alisha to understand how crude oil becomes gasoline?
sukhopar [10]
The answer is 100% B. Flow chart.
5 0
4 years ago
Read 2 more answers
Can someone please help with two? I will mark brainlest!!!
creativ13 [48]
<h3>Sorry if i'm wrong, but <u>I think</u> the right answer is option <u>"D"</u> because the website is not an online business or an online store where you can sell stuff is more like a wiki or blog website were people can share their ideas and pictures not sell them</h3>

6 0
3 years ago
What is the meaning of antimonographycationalis​
Oliga [24]

Answer:

Although this word was made up in order to be a contender for the longest word in English, it can be broken down into smaller chunks in order to understand it.

Anti- means that you are against something; monopoly means the exclusive control over something; geographic is related to geography; and the remaining part has to do with nationalism.

So this word means something like 'a nationalistic feeling of being against geographic monopoly,' but you can see that it doesn't have much sense.

(answer copied from  Kalahira just to save time)

3 0
3 years ago
Read 2 more answers
Other questions:
  • What sequence is used to create a brochure document from a template?
    8·2 answers
  • Which option allows you to customize the order of your data ?
    8·2 answers
  • Edhesive 4.1 question 1
    9·1 answer
  • Microsoft word 2016
    14·1 answer
  • Help me with A,b and c
    11·1 answer
  • Python
    7·1 answer
  • As a project manager, why is analysis an important aspect of the job?
    10·1 answer
  • Divide 111001 by 1101​
    7·1 answer
  • Can someone compress this ipv6 address? 558c:0000:0000:d367:7c8e:1216:0000:66be
    9·1 answer
  • Give 5 characteristics of bad capacitor<br> give 5 characteristics of good capacitor
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!