subject

Atriangular number is a number that is the sum of the integers from 1 to some integer n. thus 1 is a triangular number because it's the sum of the integers from 1 to 1; 6 is a triangular number because it's 1+2+3=6. given the non-negative integer n, create a list of the first n triangular numbers. thus if n was 5, the list would be: [1, 3, 6, 10, 15]. associate the list with the variable triangulars.

2. an arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers is the same. this in the sequence 1, 3, 5, 7, the distance is 2 while in the sequence 6, 12, 18, 24, the distance is 6. given the positive integer distance and the non-negative integer n, create a list consisting of the arithmetic progression between (and including) 1 and n with a distance of distance. for example, if distance is 2 and n is 8, the list would be [1, 3, 5, 7]. associate the list with the variable arith_prog.

3. given a variable temps that refers to a list, all of whose elements refer to values of type float, representing temperature data, compute the average temperature and assign it to a variable named avg_temp. besides temps and avg_temp, you may use two other variables -- kand total.

4. a list named parking_tickets has been defined to be the number of parking tickets given out by the city police each day since the beginning of the current year. (thus, the first element of the list contains the number of tickets given on january 1; the last element contains the number of tickets given today.) write some code that associates most_tickets with the largest value found in parking_tickets. you may, if you wish, use one additional variable, k. 5. associate the sum of the non-negative values in the list numbers with the variable sum.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:30, rose6038
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
image
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
image
Computers and Technology, 24.06.2019 14:30, tleppek6245
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
Answers: 1
You know the right answer?
Atriangular number is a number that is the sum of the integers from 1 to some integer n. thus 1 is a...

Questions in other subjects:

Konu
History, 21.11.2020 04:00
Konu
Mathematics, 21.11.2020 04:00
Konu
Mathematics, 21.11.2020 04:00