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
gladu [14]
3 years ago
13

Write a program that reads in ten numbers from the user and displays the distinct numbers. If a number entered by the user appea

rs multiple times, your program needs to filter the repeated numbers and therefore displaying the repeated numbers only once. For example, if the user enters the number 1, 4, 6, 1, 8, 4, 2, 1, 3,9 then the output of your program should be: 1, 4, 6, 8, 2, 3, 9.
Computers and Technology
1 answer:
Jobisdone [24]3 years ago
7 0

Answer:

Here you go :)

Explanation:

Change this however you'd like:

array = []

for n in range(10):

   x = int(input("Enter integer: "))

   array.append(x)

dup = set(array)

print(", ".join(str(i) for i in dup))

You might be interested in
What is the missing line of code?
Ray Of Light [21]

Answer:

phrase[2:5]

Explanation:

Given:

The above code segment

Required

Which instruction returns 'u a'

First, we need to get the index of u in the phrase:

u is at the third position but in programming, index starts at 0.

So, u is at index 2

Next, we need to get the index of a in the phrase:

a is at index 4

One of the ways to return a sub string from a string in python is string[start:stop+1]

Where:

start = 2 ----- index of u

stop = 4  ----- index of a

phrase ---- The string variable

So, the instruction that returns 'u a' is: phrase[2:5]

<em>Where 5 = 4 + 1</em>

5 0
3 years ago
How do you know that the computer is infected by virus​
Olegator [25]
  1. Slow computer performance (taking a long time to start up or open programs)
  2. Problems shutting down or restarting.
  3. Missing files.
  4. Frequent system crashes and/or error messages.
  5. Unexpected pop-up windows.
6 0
2 years ago
Please help ASAP!
makkiz [27]
B. training is the correct answer
8 0
3 years ago
What is the main advantage of using e-mail to complain about a service or product?
Dahasolnce [82]
The advantage of using email to complain about a service or product is that you are likely to get a faster response because this is the most common way in which complaints are tackled, and it also means you have a written record of the conversation between yourself and the company.
8 0
3 years ago
Four possible skills a person could have
cluponka [151]

Answer:

Active listening skills.

Genuine interest in others.

Flexibility.

Good judgment.

Explanation:

4 0
4 years ago
Other questions:
  • What makes sqlite an appropriate choice for an android application, compared to other relational database management systems, su
    15·1 answer
  • Instructions:Select the correct answer.
    15·2 answers
  • To move one screen to the left press ____.
    9·1 answer
  • Ect the best answer for the question
    13·1 answer
  • What is Linux an example of
    6·1 answer
  • Time complexity: Be sure to show your work. Suppose that a particular algorithm has time complexity T (n) = 10 ∗ 2n, and that ex
    7·1 answer
  • Write a program that displays the following menu:
    8·1 answer
  • I need help in raft survival ocean nomad I was traveling and now I can't enter the island or go back home (raft). Please help me
    15·1 answer
  • is a measurement that quantifies how much information can be transmitted over the network. A. Memory B. DMZ C. Bandwidth D. Clou
    10·1 answer
  • How have newspapers and magazines adapted to digital technology?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!