EssayNICE | 24/7 Homework Help

Essaynice Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Assignment help 6489

by | Jun 24, 2023 | Posted Assignments

This is Python Programming

Q1a. 20 points functions:

Ask the user to enter a number n.   function to the sum the following series up to n terms

25 + 100 + 225 + 400 …. (squares of multiples of 5)

Note: Your code must use a function which takes n as input and produces the sum as output. Just outputting the result will get you half points.

Sample Output 1:

Please enter n: 2

125

Sample Output 2:

Please enter n: 3

350

Q1b. 20 points mixing lists:

Ask the user to input two lists of equal size. new list which interleaves the two lists by taking 1 from the beginning of the first list and then one from the end of the second list then the 2nd one from the first list and the second last one from the second list and so on. Output this list

Sample Output 1:

Please enter list 1: 1 2 3 4

Please enter list 2: 5 6 7 8

The combined list is 1 8 2 7 3 6 4 5

Sample Output 2:

Please enter list 1: 1 3 5 7

Please enter list 2: 8 6 4 2

The combined list is 1 2 3 4 5 6 7 8

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

Open chat
1
Powered by essaynice
Hello! Welcome to to our whatapp support.
We offer READY solutions, HIGH QUALITY PLAGIARISM FREE essays and term-papers.

We are online and ready to help