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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, dnjames01
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, minelly1717
Your business be in google top rank. more the rank more the business leads. for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services, online seo expert services,
Answers: 3
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
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 in other subjects:

Konu
Mathematics, 13.10.2020 01:01
Konu
Mathematics, 13.10.2020 01:01