subject

Write a python program to do the following:
(a) use the range function to generate this sequence of integers: 5, 9, 13, 17 and 21. save the numbers in a list. display the list.
(b) use a for loop to display each element in a separate line.
(c) use the range function to generate this sequence of integers: 26, 19, 12 and 5. save the numbers in a list. display the list.
(d) use a for loop to calculate the total of the elements in the second list. display the total.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
You know the right answer?
Write a python program to do the following:
(a) use the range function to generate this sequ...
Questions
question
Social Studies, 30.01.2020 00:58
question
Mathematics, 30.01.2020 00:58
question
Mathematics, 30.01.2020 00:58
question
Mathematics, 30.01.2020 00:58
question
Mathematics, 30.01.2020 00:58
question
Social Studies, 30.01.2020 00:58
Questions on the website: 13722360