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
quester [9]
3 years ago
13

Write a program that will take a user-input number and then display all of the whole # factors for that number. For example, if

I typed in 4, your program should display all # of the factors for 4 (1, 2, and 4). Your program should work for any number. # # Hint: What approach would you take if faced with this scenario? What Python operator can # be used to determine whether a number is divisible by another number?
Computers and Technology
1 answer:
klemol [59]3 years ago
4 0

Answer:

The program to this question can be given as:

Program:

Number=int(input("Insert a number :"))   # input a number from

fact=[]               # crate list

for k in range(1,Number+1):              #loop

   if Number%k==0:                      # check number is divisible by k

      fact.append(k)    

print ("Factors of {} = {}".format(Number,fact))   #print value

Output:

Enter a number: 4

Factors of 4= [1,2,4]

Explanation:

In the above python program firstly we declare a variable that is Number in this variable we take user input. To user input, we first convert the value into the integer and the input function is used for input. Then we declare a list that fact =[]. In the python, the list is used for placing all the elements inside a square bracket [ ] all the elements will be separated by commas. Then we use for loop it is used for iterate over a sequence. Then we use the if statement. It is used for check condition. In this statement, the number is divided by k. if the remainder is equal to 0. It will print the value.

You might be interested in
Technological uncertainty:
Lisa [10]

Answer:

The correct answer is: "b. occurs because an alternative technology could be introduced by competitors".

Explanation:

It is very difficult to assess how technological uncertainty has been developed and maintained throughout the years, although it is possible to state that it may occurs when other alternative technologies are developed and launched, besides other factors. Technology companies and agencies are interested in developing their products as best as possible, therefore, competition increases with marketability and produces uncertainty among all developers, software and hardware engineers, and other Information Technology (IT) workers who are responsible for creating new technological tools which may solve the problem of uncertainty among them all and improve society.

(ps: mark as brainliest, please?!)

6 0
3 years ago
What is a browser cookie?
nikitadnepr [17]

B) its a small peice of data that tracks your preferances on diffrent websites

Have a great day !

6 0
3 years ago
Read 2 more answers
What is printed when the following code has been executed?
serg [7]
Hey it is 15 hope this helps
3 0
3 years ago
The Internet Engineering Task Force (IETF) defines the protocols and standards for how the Internet works. The members of the IE
belka [17]

<em>Answer:</em>

<em>A loosely organized collection of citizens and engineers who communicate mostly by email. </em>

Explanation:

6 0
3 years ago
Please help! i need to answer this soon!
natali 33 [55]

Answer:

1. a modem connects a computer to the internet  

4. a modem transmits digital signals over a telephone line

5. a dial-up modem communicates using a telephonic call​

All of three mentioned above.

Modem stands for modulator de-modulator, and it connects the computer to the internet. Its not the fastest, which is router. And the connection is established via the telephone line, through which the digital signals is being transmitted, And the type used is dial up communication.

Explanation:

The answer is self explanatory.

4 0
3 years ago
Other questions:
  • True False The explicit location always tells you where users are located when they type the query.
    10·2 answers
  • When a server crashes and goes offline on a network, which of the following helps to determine that the server is unavailable?
    9·1 answer
  • Idea citizen activation
    9·2 answers
  • Which of the following data recording procedures is best used for behaviors that have a clear ending and beginning, do not occur
    12·1 answer
  • The Apple iPhone was a revolutionary product when it was introduced in 2007. To what extent do you agree or disagree with this s
    8·1 answer
  • EXCEL 2016:
    8·2 answers
  • Which route of entry could chemicals use to enter through the body’s airways?
    8·1 answer
  • Who wants brainlyest! NO LINKS how do you message someone on brainly
    10·2 answers
  • A school has an intranet for the staff and students to use. Some of the files stored on the intranet are confidential. Give two
    15·1 answer
  • Difference between hacking and cracking not hackers and crackers ​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!