In python write a program that reads numbers and adds them to a list if they aren't already contained in the list. When the list contains ten numbers, the program displays the content and quits.

Answers

Answer 1

The program that reads numbers and adds them to a list if they aren't already contained in the list is as follows;

aList = []

while len(aList) != 10:

    n = int(input("Enter the value: "))

    if not n in aList:

         aList.append(n)

print(aList)

Code explanation;

The code is written in python.

We declared a variable "aList" with an empty list .We used the while loop to make sure the loop continue if the length of the aList list is equals to 10.Then we input our number continuously until the list is up to ten.If our input is not in the list , it will append it to our declared "aList".Finally, we print out the aList.

learn more on python here: https://brainly.com/question/27075682

In Python Write A Program That Reads Numbers And Adds Them To A List If They Aren't Already Contained
In Python Write A Program That Reads Numbers And Adds Them To A List If They Aren't Already Contained

Related Questions

1.6 code practice: question 1 edhesive

Answers

Answer: g = input("Enter a word: ")

m= input("Enter a word: ")

print(g +" " +m)

Explanation:

some critics aruge that excessive media consumption can encourage______.
A. deeper reading
B. taking breaks from using digital media
C an unhealthy lifestyle
D. healthy friendships

Answers

c. an unhealthy lifestyle

13. Microsoft PowerPoint is the best example of Multimedia Presentation
Software.
OFalse
True​

Answers

Answer:

Uhhh...ooop.........

I’m pretty sure it is either falsely true or truly false

Which e-mail netiquette rules did the student break? Check all that apply.

Answers

Answer: B, D, and E in other words 2, 4, and 5

Answer:a b e

Explanation:

the other person is wrong

What are the programs required to work in computer

Answers

Answer:

Specific requirements vary by employer, but completing a degree program or a coding academy is generally necessary to begin a career as a computer programmer.

Explanation:

please mark me as brainliest

Does anyone know how to ask the user to input their name and then print the name 10 times using a while loop and have the 10 names on different lines?

Answers

In python:

name = input("What's your name? ")

i = 0

while i <= 10:

   print (name)

   i += 1

I hope this helps!

What is the output of this program? numA = 10 for count in range(5): numA = numA + 2 print (numA)​

Answers

Answer:

20

it runs the code 5 times, 10+2+2+2+2+2 basically. E.g 20

Answer: 20

Explanation: got  it right on edgen

You are planning a program to find the maximum heart rate recommended for patrons of a gym where you have a part-time job. One formula for calculating
the maximum heart rate is the difference between 220 and the patron's age.
You are testing for accuracy.
If a patron is 15 years old, what is the maximum heart rate?

Answers

The program would look like:

age = int(input("What's your age? "))

print(f"Your maximum heart rate is {220 - age}.")

If we input 15 as the age, the maximum heart rate is 220 - 15, which equals 205

The maximal heart rate is 220 minus 15, which is 205 if we enter 15 as the age.

What is meant by patrons?

A patron is a special guardian, protector, or supporter of the arts as defined in definition. A wealthy or influential ally of an artist.

A patron is someone who frequently uses a business's services or makes financial contributions to another person or cause, such as an arts patron. A customer is someone who goes to the same restaurant every week, for instance.

Formal someone who often visits a particular restaurant, hotel, or other business. This parking lot is for customers only. synonyms and comparable words. a stay in a hotel or guesthouse. Bookable.

The word patron comes from the Latin pater or patr- meaning "father." Think of how a father is supposed to financially support his kids. A patron of the arts is someone who shows his appreciation or support for the arts by donating money to arts organizations.

Thus, The maximal heart rate is 220 minus 15,

For more details about patrons, click here:

https://brainly.com/question/16783674

#SPJ5

what is information that can be proven with evidence A opinion B copy C fact D paste

Answers

Answer:

C

Explanation:

A fact is a true statement with evidence

Answer: C. Fact

Explanation: if it was already proven with evidence then we can confirm it was a fact

all of the following are examples of service learning opportunities exept

Answers

Answer:

give following examples please

1. Your older brother Max tells you about his secret plan to hack into his college's computer network
and change all of his grades. What should you say to Max to convince him that his plan is both
illegal and unethical? Be sure to discuss possible consequences of his actions.

Answers

Answer: You could get in troulble for it and also they could see when its changed and change it back.

Explanation:

If a brother, Max tells that he is trying to hack the computer network to increase his grade. It is important to tell him that it is unethical and illegal, as he can get jailed for it and restricted from the college.

What is hacking?

A hacker is an information technology expert who employs non-standard methods to attain a goal or overcome an impediment within a computerized system.

The act of detecting and then exploiting holes in a computer system or network, usually to obtain unauthorized access to personal or organizational data, is known as hacking.

Therefore, Max informs his brother that he is attempting to hack the computer network in order to improve his grade. It is critical to inform him that it is immoral and unlawful, as he may face jail time and expulsion from the college as a result.

To learn more about hacking, refer to the link:

https://brainly.com/question/14835601

#SPJ5

what does abraham Lincoln whish for his son's teacher​

Answers

Answer:

To teach him his talents and brains

basically to teach them what the teacher knew

To live this life will require faith, love and courage. So dear Teacher, will you please take him by his hand and teach him things he will have to know, teaching him – but gently, if you can. Teach him that for every enemy, there is a friend. He will have to know that all men are not just, that all men are not true.

Henry wants to create a website for his projects. He needs it to have a lot of textual content, proper formatting, and animations. Which languages will he need for this?

Henry can us ____to create the web content. He can use ____ to style the content he has created and _____ to create animation

the blank choices can be filled with
1.CSS HTML XML
2.CSS XML DHTML
3. Javascript Shockwave ActionScript ​

Answers

Answer:

1. HTML

2. CSS

3. JavaScript

Explanation:

Shockwave and Actionscript are no longer used on the web.

The Answer Above is incorrect. This is the correct answer:

A word processing program would probably be used to

Answers

Answer:

Create a contract to hire someone

Explanation:

(APEX)

Answer:

the answer is Create a contract to hire someone

Explanation:

para saan po yung points dito?

Answers

Answer:

Hindi kudin Alam eh hahahha

Answer:

Hey, there this is the answer

Users need to use points to post a question. The more points they use, the more quickly their question will be answered. Users gain a basic number of points each time they log into the platform.

HELP PLEASE

Which of these criteria would be important to consider when choosing a
programming language?
1.The gameplay of the game.
2.The color scheme of the game.
3.Whether the game is aimed at the
mobile or web market.
4.Whether the game is played on WiFi
or cellular data.

Answers

Answer:

Most likely number 3 because when coding a game, not all languages are meant to be put on all devices--mobile, console, PC--so you have to consider where the game is meant to be played on and how you plan to port that game over.

Explanation:

The programming language a set of formal languages that consists of various types of machine code outputs. This type of language is used for programming algorithms.  

Most of the programming languages consist of instructions for a computer. One may consider the programming language that can be developed and then executed rapidly. The programmers need to keep in mind the various considerations for making the language. Such as the audience and market.

Hence the option 3 is correct.

Learn more about the criteria would be important to consider when choosing a  programming language.

brainly.com/question/21859910.

Jennifer works as a programmer. She has fixed certain bits of code in a program while developing it. She has purposely left specific code in the program so she can access the program later and obtain confidential information. Which programming threat has she created?
A. logic bomb
B. trap door
C. Trojan horse
D. virus

Answers

Answer:

B. trap door

Explanation:

It's also referred to as the back door

HOW MEANY PEOPLE PLAY AMONG US

Answers

Answer:

up to 1.5 million people are playing Amoung Us

Explanation:

Answer: I Play Among Us But this is a website for learning and questions so please ask that somewhere else. Thank You Have A Nice Day!

Explanation:

Select the correct answer.
If you want a bachelor’s degree, you should go to:

A. A four-year college or university
B. A vocational or technical school
C. An apprenticeship
D. A community college Reset Next

Answers

A. A four year college or university

Answer:

A. A four-year college or university.

Explanation:

A bachelor's degree requires four years of education to be awarded.

True or False?If you live in a country that uses censorship,you may not be able to access certain websites.ONLY ANSWER IF UR 100% SURE​

Answers

Answer:

true

Explanation:

censorship is when you don't let people see something,if a country uses censorship they may stop you from seeing certain websites.

What is the drawback of the linear model?
A.
communication is only in one direction
B.
too much noise is created
C.
no feedback is sent on receiving the message
D.
long travel between the sender and the receiver

Answers

Answer:

long travel between the sender and the receiver

Explanation:

The drawback of linear model is long travel between the sender and the receiver. The correct option is D.

What is linear model?

Depending on the context, the phrase "linear model" is used differently in statistics.

The word is frequently used interchangeably with a linear regression model since it occurs most frequently in relation to regression models.

The phrase has a different connotation when employed in time series analysis, though.

Something that is linear is related to a line. A line is built using all of the linear equations. A non-linear equation is one that cannot be represented by a straight line. It has a variable slope value and resembles a graphed curve.

The linear model's disadvantage is the distance between the transmitter and the receiver.

Thus, the correct option is D.

For more details regarding linear model, visit:

https://brainly.com/question/29757372

#SPJ2

Employment of web developers is projected to grow _________ From 2019 to 2029, much faster than the average for all occupations.
A)10%
B)5%
C)20%
D)8%
E)12%​

Answers

Answer:

E

Explanation:

The demand for web developers are projected to grow to such a size because of the worlds expected connection to the internet will need web developers to accomadate.

Which of the following BEST describes the differences between sequential and event-driven programming?

Answers

Answer:

In sequential programming, commands run in the order they are written. In event-driven programming, some commands run in response to user interactions or other events.

Explanation:

Event-driven program : A program designed to run blocks of code or functions in response to specified events.

Sequential programming: The order that commands are executed by a computer, allows us to carry out tasks that have multiple steps. In programming, sequence is a basic algorithm: A set of logical steps carried out in order.

The missing options are;

A) In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.

B) In sequential programming commands run faster than in event-driven programming.

C) In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.

D) In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.

This question is about sequential programming and event-driven programming.

Option D is correct.

To answer this question, we need to first of all define what the two terminologies in computer programming are;

Event-driven programming; This is a programming pattern whereby the program flow is determined by a sequence of events that arise from activities/interaction of the user or the system.

Sequential programming: This is a programming pattern whereby the program flow is determined by the sequence in which it was written.

Looking at the given options, the only one that fits perfectly into the description I have given above about sequential and event-driven programming is Option D.

Read more at; brainly.com/question/17970226

people with healthy media diets:
A.do not have problems with addictions, obesity, or other health issues
B. make good choices about what media to use and when not to use them
C. do not eat while engaging in media and avoid unnecessary weight gain
D. choose to leave media and technology out of their lives entirely

Answers

Answer:

b

Explanation:

What keyword do we use to tell Java to set aside memory to create an object?

Answers

Answer: You reserve memory locations for an array when you _____.

use the keyword new

In java, keywords are special words, that have reserved meaning; and they cannot be used for any other purpose apart from their predefined functions.

The keyword to set aside memory for objects is the new keyword.

The following syntax is used to create an object in java;

Object object_name = new Object();

Take for instance, you want to create a Scanner object.

We use the following:

Scanner scnr = new Scanner(System.in);

The new keyword will always be present when creating objects, in other to create the instance of the object, and allocate memory for the object that is being created.

Read more about java keywords at:

https://brainly.com/question/22082613

Why Salt become such a valuable item a long time ago because? esay

Answers

Answer:

Explanation:If you could choose between a pile of salt and a pile of gold, you would probably choose the gold. After all, you know that you can always buy a container of salt for about forty-five cents at the local supermarket. But what if you could not easily get salt, and without it you could not survive? In fact, throughout history salt has been very difficult to obtain in many parts of the world, and people feared a lack of salt the way we in the industrialized world fear a shortage of fuel oil.

Once cultures began relying on grain, vegetable, or boiled meat diets instead of mainly hunting and eating roasted meat, adding salt to food became an absolute necessity for maintaining life. Because the Akan lived in the forests of West Africa, they had few natural resources for salt and always needed to trade for it. Gold, however, was much easier to come by. Every Akan knew how to find tiny grains of gold sparkling in the river beds after a rainfall. The people who lived in the desert of North Africa could easily mine salt, but not gold. They craved the precious metal that would add so much to their personal splendor and prestige. These mutual needs led to the establishment of long-distance trade routes that connected very different cultures.

Camel caravans from North Africa carried bars of salt as well as cloth, tobacco, and metal tools across the Sahara to trading centers like Djenne and Timbuktu on the Niger River. Some items for which the salt was traded include gold, ivory, slaves, skins, kola nuts, pepper, and sugar.

A company creates an identity for a product through its logo,
packaging and promotions. Customers like the product and
remember their good feelings every time they see something
about the product. They continue to buy the product and also tell
their friends about it, which increases sales. What is this an
example of?
O Product Life Cycle
O Product Classification
O Product Mix
O Branding

Answers

Answer:

branding

Explanation:

Which statements describe the use of sound in presentations?

Sound cannot be used in presentation programs.
Sound can distract the audience when it is overused.
Sound can only be used with transitions.
Sound can only be used with animations.
Sound can be used with both animations and transitions.

Answers

Answer:

b and e

Explanation:

The statements that best describe the use of sounds in the presentation are as follows:

Sound can distract the audience when it is overused.Sound can be used with both animations and transitions.

Thus, the correct options for this question are B and E.

What do you mean by Presentation?

The Presentation may be defined as the type of process through which an individual who is known as the speaker conveys information on a particular topic to the number of people known as the audience.

As normally sound makes the presentation more attractive and understandable but the excess sound in the presentation makes the mood of the audience saturated and finally distracts. A standard level of sound must be required in both animations and transitions to make the presentation more influencing one.

Therefore, the correct options for this question are B and E.

To learn more about the Advantages of presentations, refer to the link:

https://brainly.com/question/11972945

#SPJ2

someone uses instant messaging on a social media website to talk to her friends.give two advantages of using social media​

Answers

Answer:

Social media can be used to gain informationTo communicate with people far awaySocial media can help in broadcasting a bussiness .

Which Call of Duty game is the best?
A. Black Ops 1-4
B. Modern Warfare 1-4
C. Infinite Warfare
D. Advanced Warfare
E. Ghosts
F. WWII

Answers

Answer:

i like ghost and modern 3

Explanation:

Other Questions
Graph the inequality. [tex]y \leqslant 2[/tex] Cules son las causas del encierro del mandarn Chou? Cul fue la estrategia para estar seguro y aislado? Cmo se diverta? Por qu el mdico es el asesino aunque no clav la daga? Por qu el crimen no hubiera podido cometerse sin el espejo? 8 less then a number n is -13 A recipe for orange water says, "Mix 3 teaspoons yellow water with 1 teaspoon red water." For this recipe, we might say: "The ratio of teaspoons of yellow water to teaspoons of red water is 3:1 ." Write a ratio for 2 batches of this recipe and explain how you know it is equivalent to 3:1. The strategy in which you learn something by repeating it over and over is calleda. RevisionReductionb. Relearningd. Repetition Henry predicted whether he got answers right or wrong in his 50 question exam. He identified the 36 questions he thought he got right. It turns out that Henry got 5 questions wrong that he thought he got correct and he only got 11 of the questions wrong he had predicted. What is the percentage accuracy he had with predicting his scores? 16) The chorus needs to raise money to go on their annual trip. It will cost $2,000 to go. So far, they have raised$800 selling their chocolate candy bars. If they decide to sell sandwiches at lunch for $3 each, how manysandwiches will they need to sell to raise the remaining funds? Rewrite 2 4/7 as an improper fraction. The amount of oxygen in the reactants is 4 atoms. In the products, the oxygen is distributed to water (H2O) and 02gas. Which coefficients would be placed in front of water and oxygen?O2 in front of water and 2 in front of oxygenO 1 in front of water and 2 in front of oxygen1 in front of water and 1 in front of oxygen2 in front of water and 1 in front of oxygen (62-3) X (2 + 8) =The 2 is little and a little over 6 so its not 62 its like 6 2 What is the density of a piece of cement has a mass of 8.76 g and volume of 3.07 cm^3? Who had the best response to the national BLM issue?Donald TrumpJoe BidenNobodyAnd why Which option is most likely a complementary good for a smartphone?A. Smartphone headphonesB. Smartphone taxesC. Smartphone factoriesO D. Smartphone online reviewsSUBMIT Non-traditional data is often displated on food labels using a bar graph or a circle graph? True FalsePlease helpp25 points ;) A dog walks 30. m west, then 40. m east and then 20. m south. What is the What is the value of 10 - 2(4-5)? How does Tecumseh's understanding of national identity compare with that of most white Americans of his era? What are the main types of computer software? CHECK ALL THAT APPLY A. motherboardB. application softwareC. operating systemD. central processing unitE. basic input/output systemF. hard disk drive Part AWhat inference can be drawn about Bilbo's character based on Chapter 5 of The Hobbit?O He is confused about the goals of the expedition.O He is a problem solver.He is unable to act in a crisis.O He wants to return home to the safety of the shire. Please help me!!! Thank you so much