Write a program that reads in ten numbers from the user and displays the distinct numbers. If a number entered by the user appears 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.

Answers

Answer 1

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))


Related Questions

pdf
B. Ayusin ang mga titik sa bawat bilang upang mabuo ang mga
tamang salita na bumubuo ng web browser at mga ilang
bahagi ng web browser. Isulat ang iyong sagot sa sagutang
papel.
1. terterin ploexrer
2. glegoo mechro
3. foxfire zillamo
4. bat mena
5. bat wen​

Answers

Answer:

Question wants the misspelled words to be properly arranged to give the correct names in relation to web browsers.

terterin ploexrer ⇒ Int-ernet Ex-plorerglegoo mechro ⇒ Goo-gle Ch-romefoxfire zillamo ⇒  M-o-z-i-l-l-a Fire-foxbat mena ⇒ Tab name.bat wen​ ⇒ New Tab

Why should you try out a camera bag before taking it on a vacation?

So you can make sure that your passport fits in it
So that you can make sure it is comfortable
So that you can get a different color
So that you can add more equipment

Answers

Answer:

b or c

Explanation:

I think it’s B but I could also be c

An algorithm to print a set of 10 integers in ascending order

Answers

Answer:

Program  - Array Sorting

Author   - Vishal Solanki

Language - C Language

Date     - 03/02/2018 (dd/mm/yyyy)

*/

//IDE used for this code is "Visual Studio 2017"

#include <stdio.h>              //including stdio.h for printf and other functions

#include<conio.h>

int main()                        //default function for call

{

int a[100],n,i,j;

printf("Array size: ");

       scanf("%d",&n);

       printf("Elements: ");

       

     for(i=0;i<n;i++)

   {

       scanf("%d",&a[i]);

   }

for (int i = 0; i < n; i++)                     //Loop for ascending ordering

{

 for (int j = 0; j < n; j++)             //Loop for comparing other values

 {

  if (a[j] > a[i])                //Comparing other array elements

  {

   int tmp = a[i];         //Using temporary variable for storing last value

   a[i] = a[j];            //replacing value

   a[j] = tmp;             //storing last value

  }  

 }

}

printf("\n\nAscending : ");                     //Printing message

for (int i = 0; i < n; i++)                     //Loop for printing array data after sorting

{

 printf(" %d ", a[i]);

}

for (int i = 0; i < n; i++)                     //Loop for descending ordering

{

 for (int j = 0; j < n; j++)             //Loop for comparing other values

 {

  if (a[j] < a[i])                //Comparing other array elements

  {

   int tmp = a[i];         //Using temporary variable for storing last value

   a[i] = a[j];            //replacing value

   a[j] = tmp;             //storing last value

  }

 }

}

printf("\n\nDescending : ");                    //Printing message

for (int i = 0; i < n; i++)                     //Loop for printing array data after sorting

{

 printf(" %d ", a[i]);                   //Printing data

}

return 0;          //returning 0 status to system

getch();

}

//Ouput

/*

Array size: 10

Elements :  3  4  7  6  5  1  2  8  10  9

Ascending :  1  2  3  4  5  6  7  8  9  10

Descending :  10  9  8  7  6  5  4  3  2  1

*/

Explanation:

It's common to print a rotating, increasing list of single-digit numbers at the start of a program's output as a visual guide to number the columns of the output to follow. With this in mind, write nested for loops to produce the following output, with each line 60 characters wide: | | | | | | 123456789012345678901234567890123456789012345678901234567890

Answers

Answer:

The program in python is as follows:

for i in range(0,6):

   for i in range(0,9):

       print(" ",end='')

   print("|",end='')

print()

for i in range(1,61):

   print(i%10,end='')

Explanation:

See attachment for program output format

The next two instructions create a nested for loop

for i in range(0,6):

   for i in range(0,9):

This prints 9 spaces

       print(" ",end='')

This prints a vertical line at the top of the end of the spaces printed

   print("|",end='')

This prints a new line

print()

This iterates from 1 to 60

for i in range(1,61):

This prints 1, 2, 3....9, then 0, 6 times on a straight line

   print(i%10,end='')

Give
25
Input devices examples

Answers

Keyboard
Microphone
Mouse
Pen
Image scanner
Touch pad
Light pad

Click this link to view O*NET’s Tasks section for Psychiatrists. Note that common tasks are listed toward the top, and less common tasks are listed toward the bottom. According to O*NET, what are some common tasks performed by Psychiatrists? Select four options.

Answers

Answer:its 2.3.5.6

Explanation: i just did it on edge

Answer:

B,C,E,F

Explanation:

Cuz i said so

Select the correct answer.
A computer using a connectionless network protocol sends too many data packets to another computer, causing loss of a few packets. As a result, the message appears jumbled to the user at the destination computer. How does TCP overcome this issue?
A.
by using flow control
B.
by using cables
C.
by using terminals
D.
by using a larger IP address
Please only answer if you are 100% sure

Answers

Answer:

D by using a larger IP address correct

Explanation:

Correct answer I hope this helps you :)

Question # 2
Dropdown
Identify the type of error described.

___5 / 0


___ float('two')

Answers

Answer:

ZeroDivisionError

ValuError

Explanation: Edg 2020-2021

Answer:

1.ZeroDivisionError

2.ValueError

Explanation:

took test

A line graph is a great tool for showing changes over time. Why is a line graph better than other graphs at showing this type of data?

Answers

Answer:

Line graphs allow us to see overall trends such as an increase or decrease in data over time. Bar graphs are used to compare facts.

____________ are the in – built functions that perform a particular pre – defined task when used in a computer program.

Answers

Answer:

System software.

Explanation:

System software are the in-built functions that perform a particular pre-defined task when used in a computer program. An example of a system software is an operating system.

An operating system (OS) is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes. Some examples of an operating system are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM etc.

OBJECTIVE QUESTIONS
1. In a computer keyboard the Alt, Ctrl, Shift, Del & Insert
keys are known as

Answers

Answer:

A modifier

Explanation:

because this modified a computer keyboard

Elza hos a document with plain text. She wants to format only the second paragraph of the fifth page to have two
columns. What sequence of buttons will Eliza click to set up the correct type of section break for this?
O Page Layout, Breaks, Page
O Page Layout, Breaks, Continuous
Insert, Page Break
O Insert, Continuous

Answers

Page layout breaks page

Use the drop-down menus to complete statements about archiving and backing up data fileArchiving data files manages the size of a mailbox for storage.
Creating an Outlook data file
data files in storage on a computer.

Answers

Answer:

Archiving data files manages the size of a mailbox for  

local

storage.

Creating an Outlook data file  

protects

data files in storage on a computer.

Explanation:

Because its right.

Answer:

an increase in cloud computing

Explanation:

You want to read input from the user to know how many apples they would like
to buy. Which statement should you use to read in a number from the user?
var applesToBuy = readLine("How many apples would you lik
e? ");
o
var applesToBuy - println("How many apples would you like?
Dj
var applesToBuy - readInt("How many apples would you like?
1);
var applesToBuy
= nextInt("How many apples would you like?
")

Answers

Answer:

var applesToBuy = readLine("How many apples would you lik

e? ");

Explanation:

It asks the user to enter answer the question and it stores the answer into the applesToBuy variable.

Its right dont worry.

In the given scenario, if we use "InputStream" class object that inputs value from the user-end, in which we use "readInt" keyword. In Java, this function of the DataInputStream class reads 4 input bytes and returns an integer value. This method takes the next 4 bits from the input stream, transforms them to integers, and would then returns.

And the wrong choice can be defined as follows:

For choice 1, it use the "readLine" method which inputs the string value.For choice 2, it use the "println" method which prints value.For choice 4, the "nextInt" method is the part of "Scanner" class.

Therefore, the answer is "Option 3", which is  "var applesToBuy - readInt("How many apples would you like?");".

Learn more:

brainly.com/question/20637377

The following code will not display the results expected by the programmer. Can you find the error? Declare Real lowest, highest, average Display "Enter the lowest score." Input lowest Display "Enter the highest score." Input highest Set average = low + high / 2 Display "The average is ", average, "."

Answers

Based on the information given, the first error in the code is that the Variable name is lowest, NOT low, and Set average = low + high / 2.

How to find the error in the code.

For Error 2: Variable name is highest, NOT high and Set average = low + high / 2

For Error 3 : Set average = low + high / 2. Thus, you will need to add the lowest and highest, then perform the division by 2

Set average = (lowest + highest) / 2 is the the correct statement.

Learn more about codes on:

https://brainly.com/question/25875879

i need help with this ​

Answers

Answer:

Answer is D

Explanation:

cameras did not use disks until the late 1990s  :D

edit: sorry my previous answer was wrong, I apoligize for the mishap :(

type in computer code for Sonic the Hedgehog, does it look weird yes or no

Answers

Answer:

yes.

Explanation:

PLEASE HELP ME WITH THIS i will mark you brainlist

Answers

Answer: you have to check your email and click on the microsoft email they sent you and enter the code in the email.

Explanation: plz mark brainliest

Issues in plagiarism and copyright when blogging can be prevented. True or false​

Answers

Answer:

It’s false

Explanation:

I can’t explain it’s too confusing

What is the primary reason for compressing video files?

increase frames per second

increase bit rate

decrease file size

decrease playback delay

Answers

Answer:

Decrease file size

Explanation:

This goes for almost every file you compress. If you compress it, you try to decrease the storage space it takes up as a way to make it more portable. After a compressed file is extracted, it does not have many effects on the state of the extracted file.

Answer:C

Explanation:Decrease file size

V. Write a program in python for the following:
[10]
a) Jennifer wants to carpet her new room with pink carpet. Create a program that will ask the user for the two
dimensions of a room (length and width) and then calculate the area of the room, (length x width), before
finally displaying the answer​

Answers

Answer:

length = input("length of room:  ")

width = input("Width of room:  ")

Area = float(length) * float(width)

print("Area of room is: ", Area)

What is a feature of Accenture’s myNav platform?

A. supports a more responsive, cost-efficient, and secure workplace platform for project deployment and full upgrades.
B. powers a highly automated, data-driven, and low-risk approach to adopting and maintaining MS Office suites
C.helps assess, architect, and simulate Cloud solutions to determine the right Cloud architecture based on our clients’ business needs
D. enhances ability to innovate, boost business results, and speed up a client’s journey to intelligent enterprises
D.

Answers

A. because I said so dummy

One feature of Accenture’s myNav platform is that it:

C. Helps assess, architect, and simulate Cloud solutions to determine the right Cloud architecture based on our clients’ business needs

According to the given question, we are asked to state one feature of Accenture’s myNav platform and how it affects the cloud computing for businesses.

As a result of this, we can see that this Accenture’s myNav platform is designed to help businesses navigate through their cloud solutions so that they can choose the package that would meet their client's business needs.

Therefore, the correct answer is option C

Read more here:

https://brainly.com/question/25675206

Logistic Regression is a type of __________ problem.

Answers

Answer:

Logistic Regression is used to solve the classification problems, so it’s called as Classification Algorithm that models the probability of output class. It is a classification problem where your target element is categorical

Explanation:

The answer is "classification" because the named the Classification Algorithm.

It was used to solve classification difficulties. You are faced with a categorization situation wherein your goal component is a category.In the presence of more than one dependent variable, it's being used to calculate odds ratios. The binomial dependent variables render this approach similar to multiple linear regression. In the end, each variable's impact on a particular event's odds ratio is calculated.

Learn more:

Logistic Regression: brainly.com/question/20363984

What are the paparazzi?
O A. Professional artists hired by stars for portraits
B. Tabloids that expose celebrities acting rudely
O C. Fans who watch videos of stars doing silly things
O D. Photographers who follow stars to take pictures

Answers

Answer:

d.photographers who follow stars to take pictures

Data entered in a cell will appear in the bar, found about the worksheet
a.status Bar
b.Equation Bar
c.Formula Bar
d.Data Entry Bar

Answers

Answer:

formula bar

Explanation:

The formula bar in Excel is located next to the name box

and above the worksheet area. It displays the data stored in

the active cell. The formula bar is used to view, enter, and

edit values and formulas in cells.

You are the systems administrator for a large trust company. Most of the Linux servers in the company host databases that are accessed frequently by company employees. One particular Linux server has been reported as being very slow today. Upon further investigation using the top utility, you have found a rogue process that is wasting a great deal of system resources. Unfortunately, the rogue process is a database maintenance program and should be killed with caution. Which kill signal would you send this process and why? If the rogue process traps this signal, which other kill signals would you try? Which command could you use as a last resort to kill the rogue process?​

Answers

Answer:

soo long this one is ufff

True or False? A three shot is a series of any three individual
camera shots.

Answers



True. A three shot is a series of any three individual camera shot ..

Exercise 3.7.1: Proving statements about odd and even integers with direct proofs. info About Each statement below involves odd and even integers. An odd integer is an integer that can be expressed as 2k 1, where k is an integer. An even integer is an integer that can be expressed as 2k, where k is an integer.

Answers

The question is incomplete. The complete question is :

Each statement below involves odd and even integers. An odd integer is an integer that can be expressed as 2k+1, where k is an integer. An even integer is an integer that can be expressed as 2k, where k is an integer. Prove each of the following statements using a direct proof. (a) The sum of an odd and an even integer is odd. (b) The product of two odd integers is an odd integer.

Solution :

Odd number integers = 2k + 1, where k is integer

Even number integer = 2k

a). Odd integer + even integer

  = 2k + 1 + 2k

 = 4k + 1

  = 2(2k) + 1

Let 2k = t, where t is integer

   = 2t + 1

  = Odd integer by definition

If number is 2t + 1 where t belongs to integer, then it is odd integer.

Hence proved.

b). Product of two odd integers :  [tex]$2k_1 + 1,\ \ 2k_2 +1 $[/tex]   where [tex]$k_1, k_2 $[/tex] belongs to integer.

[tex]$(2k_1+1)(2k_2+1)= 4k_1k_2+2k_1+2k_2+1$[/tex]

[tex]$2(2k_1k_2)+2(k_1+k_2)+1$[/tex]

Let [tex]$2k_1k_2 = a$[/tex] and [tex]$k_1+k_2 = b $[/tex]

here, a and b belongs to integers since [tex]$k_1$[/tex] and [tex]$k_2$[/tex] are integers.

We get:

2a+2b+1

= 2(a+b)+1

= 2l + 1,             Let (a+b)=l and l belongs to integers.

It is odd integer by definition.

Hence proved.

 

During critical thinking, the evaluation of information should use
some emotions
O True
O False

Answers

False any critical thinking shouldn’t involve emotions
Im pretty sure it’s false

The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between your VM and a selected destination. This is basically what is implemented by the traceroute tool. In this task, we will write our own tool. The idea is quite straightforward: just send an packet (any type) to the destination, with its Time-To-Live (TTL) field set to 1 first. This packet will be dropped by the first router, which will send us an ICMP error message, telling us that the time-to-live has exceeded. That is how we get the IP address of the first router. We then increase our TTL field to 2, send out another packet, and get the IP address of the second router. We will repeat this procedure until our packet finally reach the destination. It should be noted that this experiment only gets an estimated result, because in theory, not all these packets take the same route (but in practice, they may within a short period of time). The code in the following shows one round in the procedure. a = IP() a.dst = ’1.2.3.4’ a.ttl = 3 b = ICMP() send(a/b) If you are an experienced Python programmer, you can write your tool to perform the entire procedure automatically. If you are new to Python programming, you can do it by manually changing the TTL field in each round, and record the IP address based on your observation from Wireshark. Either way is acceptable, as long as you get the result.

Answers

Answer:

answer b

is correct

Other Questions
a)7x = 13x 12=pls help fast also need steps Which is an example of physical weathering?limestone in rock dissolving when acid rain flows across itbits of rock rusting when exposed to oxygen and waterwind blowing off bits of a rock over timeoxidation of certain metals in rock What are 3 numbers that are in the fact family of the number 12 Which of the following pieces of evidence from Treasure Island best support the claim below? (John Silver is calculating.) A: "'Silver,' said the other man'Silver,' says he, 'you're old, and you're honest, or has the name for it; and you've money too...'" B: "I laid by nine hundred safe, from England, and two thousand after Flint. That ain't bad for a man before the mastall safe in bank. 'Tain't earning now, it's saving does it..." C: "Sharp as must have been his annoyance, Silver had the strength of mind to hide it." D: "Long John was hard at work going from group to group, spending himself in good advice, and as for example no man could have shown a better." Discuss the advantages and disadvantages of the merger between the two telecommunication firms. DOES ANYONE HAVE A COURSE HERO ACCOUNT?? PLEASE I NEED HELP!!! What was the primary purpose of the National Road? 3(x 4) = 2(2x + 1) x= 18. The mass of a metal ring is 116 g. You fill a graduated cylinder with 15 mL ofwater and drop the ring into the cylinder. The water level rises to the 26 mL mark.Which of the following could be the composition of the object?Metal Composition Density (g/cm)Silver10.58.Rhodium12.41Gold19.32Platinum21.5ACD.19. Which of the following is an example of a chemical change?1 The bread starts to rise in the oven.II The egg white starts to turn into an opaque solid on the frying panIII Steam from the shower starts to condense on the bathroom mirror.A. I and II onlyC. II and III onlyB. I and III onlyD. I, II, and III20. Which of the following is an example of a physical change?A. The silver ring is starting to tarnish.B. The antacid helps calm your stomach.C. A clump of clay is moulded into a bowl.D. Milk goes sour when it is left out for days. Of the 40 students in a class , 2/5 are girls. Of the girls , 1/4 wear glasses. How many girls do not wear glasses 6The Great Wall of China is so long the sun rises 90 minutes later on the western end than on the eastern end.True7False Find a ratio for the tangent of 32 1- In the following sentence, what is the function of the infinitive phrase as a noun?To smile at others brings joy to yourself.1- subject2- direct object3- object of a preposition Chenelle has a savings account that earns 5% simple interest each year. She can only deposit small amounts into her account each month. Should Chenelle keep her account open even though she can deposit only a small amount each month? 3.Find the surface area of the figures(a) 5cmC12cm Electric welders are covered in? Can you guys help me on question eight?! Does anyone knows this pleaseFirst question: -2x x 5xSecond question:(8x)^2Please. Which of the following is a synonym for the word audible?A-indistinct B-clear C-obscure D-mumbled Where are the 36 ATP come from during cellular respiration?A. 2 from glycolysis, 2 from oxidation of pyruvate and 32 from Krebs cycleB. 2 from glycolysis, 2 from Krebs cycle and 32 from electron transport chainC. 2 from glycolysis, 2 from oxidation of pyruvate and 32 from electron transport chainD. 2 from oxidation of pyruvate, 2 from Krebs cycle and 32 from electron transport chain