I need a Python Tutor for 28 questions, very simple stuff. I have the worksheet examples in the description

PROGRAMMING BASICS

EXERCISE SET #05

Write the following Python sub-programs, each of which involves manipulating lists. Make sure you compile and run each sub-program to test that it works.

1) MeanOf takes as its parameter a list of numbers called numList and returns as its result the arithmetic mean of the numbers in numList.

You should use the list functions sum and len to help you calculate the mean of the numbers in the list. For example, MeanOf([1, 3, 2, 6, 12, 6]) should return the value 5 (because the list contains 6 numbers that add up to 30).

2) MedianOf takes as its parameter a list of numbers called numList and returns as its result the median of the numbers in numList.

You should use the list method sort to get the numbers in order and then employ list indexing to find the median value. If the list has an odd number of elements the median will be in the middle of the sorted list, if it has an even number of elements the median will be the average of the two middle values). For example, MedianOf([1, 3, 2, 6, 12, 6]) should return the value 4.5 (because the two middle numbers in the sorted version of the list are 3 and 6).

3) Shortest takes as its parameter a list of character strings called strList and returns the shortest string in the list.

You should use a loop (either while or for) to work through the strings in the list, using len to find the length of each string in turn and comparing it with the shortest one found so far. For example, Shortest(["Anna", "Nico", "Jonathan", "Kim"]) should return the string "Kim". Question: what does your sub-program return if there is not a single shortest string, but several of the same (shortest) length?

4) AlphaFirst takes as its parameter a list of character strings called wordList in which each string is a word in the English language and returns as its result the word that comes first in the alphabet.

You should use the list method sort to get the words into alphabetical order. For example, AlphaFirst(["Lemon", "Orange", "Home", "Run"]) should return the string "Home".

Note that this may not work correctly, if some of the characters in the words are capital letters and others are lower-case. How can this be fixed?

5) Squares takes a positive integer n as its parameter and returns a list of the first n squares. You will need to use a while loop and the list method append to generate the list of squares. For example Squares(5) should return the list [1, 4, 8, 16, 25].

Programming Basics Carmine Siena, M.A.

6) Factorials takes a positive integer n as its parameter and returns a list of the first n factorials.

You will need to use a while loop and the list method append to generate the list of factorials. For example Factorials(5) should return the list [1, 2, 6, 24, 120].

7. Evens takes a positive integer n as its parameter and returns a list of the first n even numbers.

You will need to use a while loop and the list method append to generate the list of even numbers. For example Evens(5) should return the list [2, 4, 6, 8, 10].

8) SquareList takes a list of numbers numList as its parameter and returns a list containing the squares of all the numbers in numList.

You will need to use a loop (either while or for) to work through numList and the list method append to generate the list of squares. For example SquareList ([3, 2, 6, 7]) should return the list [9, 4, 36, 49].

9) RemoveAll takes two parameters, a list named itemList and a value named item, and returns a list that is the same as itemList except that all instance of item have been removed. If item was not in itemList the list returned is just the original itemList.

Tietoa työnantajasta:
( 0 arvostelua ) Cologne, Germany

Projektin tunnus: #32236542

Myönnetty käyttäjälle:

I can do this project for you. Let's discuss more details in private. Looking forward to working with you!

€50 EUR 1 päivässä
(7 Arvostelua)
4.0

12 freelanceria on tarjonnut keskimäärin €26 tähän työhön

MashoodurRehman1

Python Developer I have read your job description and I am pretty sure that I can complete every bit of your requirements. Further details and cost can be discussed in chat

€30 EUR 1 päivässä
(53 arvostelua)
5.6

Greetings! How are you today? Thanks for posting this job. I have checked your project description. ✅I'm AI engineer also Developer and Crawling website with 4+ years experiment.✅ I am very familiar to Deep learning Lisää

€25 EUR 1 päivässä
(46 arvostelua)
4.5
surajnai567

hi there i am a professional python developer. I can do it for you. Contact me we will discuss more in the chat.

€22 EUR 1 päivässä
(13 arvostelua)
3.8
harissheikh255

Hello, I will do simplest coding in Python using OOP, data structures concepts. If it is an assignment then coding will be easily understandable for u. I have done many such works here. Lets have a chat for further det Lisää

€25 EUR 1 päivässä
(6 arvostelua)
3.6
ndigiid

Hello, I'm Neel Patel, I am very much interested in doing your project and read your project description. I have 1 years of experience in python. Before Turning to Freelancer, I have worked as Research Intern on pyth Lisää

€30 EUR 1 päivässä
(5 arvostelua)
2.5
maksmyhalat

Hi, How are you? I am very interested in your project. I am an expert in math, physics. I have +5 experiences in matlab, python, R Programming. I read your description for project carefully. I’ve worked on several sim Lisää

€30 EUR 1 päivässä
(1 arvostelu)
1.4
ChebelJbira

I read the requirements and understood them very well. I'm an experienced competitive programmer this problems are pretty easy . Please contact me. Will not ask for a penny before solving all the problems.

€19 EUR 1 päivässä
(1 arvostelu)
0.6
AnushaWaseem

Hi there, i've looked up to your project it seems very simple and easy to do! I have 2 years of experience with python and willing to help you in your project.

€20 EUR 7 päivässä
(0 arvostelua)
0.0
ldhai

This seems easy to me, the first 9 questions posted are purely implementational. I also have background in algorithms too so I think I'll done all of yours in no time.

€25 EUR 1 päivässä
(0 arvostelua)
0.0
mirzaahamza

Heyy I am expert in python and I can help you with your project message me to discuss so that we can proceed further

€25 EUR 7 päivässä
(0 arvostelua)
0.0
smslomi1

Hi, experienced Python coder here. Worked as Python automation engineer for several years. I am interested in your project, feel free to contact me for a discussion. Regards.

€8 EUR 7 päivässä
(0 arvostelua)
0.0