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
Juliette [100K]
4 years ago
13

Write a Python program where the user enters the number of elements in a list ‘n’ and those ‘n’ numbers that form the list. The

user also enters a number ‘m’ by which all the elements of the list are multiplied and printed. You must print both the list before multiplying and the list after multiplied by the number ‘m’.
Computers and Technology
1 answer:
Alika [10]4 years ago
6 0

Answer:

lst = []

multiple = []

num = int(input('How many numbers: '))

multipleOf = int(input('Enter the number to multiply with: '))

for n in range(num):

 lst.append(n)

 numbers = n * multipleOf

 multiple.append(numbers)

print("elements in given list is :", lst)

print("multiple in given list is :", multiple)

Explanation:

User will enter the number and then enter the number to multiply that list.

You might be interested in
Award documentation is typically required to be prepared and submitted within how long after the end of a project period:_____.
Stella [2.4K]

Award documentation is typically required to be prepared and submitted within how long after the end of a project period of 90 days.

What does Award includes?

  • Awards to international organizations and government institutions, whether or whether they are covered by SNAP, must include annual expenditure information.
  • The report shall be submitted for each budget period, if necessary on an annual basis, no later than 90 days following the end of the calendar quarter in which the budget period concluded.
  • The report must include information on any allowed extensions to the budgetary period. If more regular reporting is necessary, both the frequency and the deadline shall be stated in the NoA.

Learn more about the Post-Award Monitoring and Reporting with the help of the given link:

brainly.com/question/15415195

#SPJ4

5 0
2 years ago
What if an input is always the same for an algorithm? <br> (Plz do not answer if you don’t know)
skelet666 [1.2K]
Given a particular input, will always produce the same output, with the underlying machine always passing through the same sequence of states.
5 0
3 years ago
Consider the following C program: int fun(int *i) { *i += 5; return 4; } 352 Chapter 7 Expressions and Assignment Statements voi
Musya8 [376]

Answer:

a. operands are evaluated left toright. 7

b. operands are evaluated right toleft. 12

Explanation:

a. operands are evaluated left toright. 7

b. operands are evaluated right toleft. 12

left to right

int fun (int *i) {

*i +=5; we add 5to x making x 8

return4; we return 4 tomain

}

void main ( ) {

int x = 3;

x = x + fun(&x); x starts at 3 in fun it ischanged to 8 but the 3 is already being used the 4 fromfun is added (3+4) to it making it 7

}

right toleft x starts at 3 in fun x gets changed to 8 and fun is returned as 4so we have 4 + 8 = 12

Paraphrasing

left to right it's is 3 + 4 =7 original value of x is used

right to left it is 4 + 8 =12 x is used as it was changed by fun, since fun was alreadyexecuted

4 0
4 years ago
Inheritance enables an object, called a _____, to derive one or more of its attributes from a parent.
jarptica [38.1K]

Answer:

The answer is C.) child

I hope this helps! ^-^

6 0
2 years ago
Frank listed the steps for attaching a file to an e-mail. Step 1: Create the message. Step 2: Click Attach File in the Include g
bija089 [108]
Which best describes Frank’s error?
Step 3 should be done before Step 2.
3 0
4 years ago
Read 2 more answers
Other questions:
  • The default primary key for an access database is the id field true or falser
    7·1 answer
  • Stephen needs to insert a field into a building block that will contain variable data. Which keyboard shortcut can he use to tog
    6·1 answer
  • How to change default search engine in internet explorer 11?
    13·1 answer
  • When you are using inprivate browsing, the "inprivate is turned on" page displays in the browser window, the inprivate label is
    14·1 answer
  • Adjusting the ______ adjusts the difference in appearance between light and dark areas of the photo.​
    6·1 answer
  • ____ is used specifically for the purpose of recording keystrokes, logging the programs or Web sites accessed, or otherwise moni
    6·2 answers
  • Interpretation is adding meaning to information by making connections and comparisons and by exploring causes and consequences.
    11·1 answer
  • You need to deploy a new cloud-based windows intune deployment to manage mobile devices in your organization. drag and drop the
    5·1 answer
  • Michelle has developed a new program for computers. She later fixed an error found in the program. What is the best way for her
    5·1 answer
  • The difference between the Basic Image Editing Software and Advance Image Editing Software.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!