I need a Python Tutor for 28 questions, very simple stuff. I have the worksheet examples in the description
€8-30 EUR
Completed
Posted over 2 years ago
€8-30 EUR
Paid on delivery
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.
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
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 similar projects like your project.
I’m interested to hear more about the project.
If you award me the project, I’d be pleased to discuss this further and get started for you as soon as possible.
Thanks!
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 python project at Space Application Centre, ISRO which was based on "UNSUPERVISED SPECTRAL UNMIXING TOOL FOR HYPERSPECTRAL DATA ANALYSIS". My task was to implement all the hyper-spectral algorithms into python plugins and that python plugins will be added to QGIS software. I have also worked as Intern on "Customized Virtual Assistant for ITES using Raspberry Pi" at Institute For Plasma Research.
I will help you to achieve the highest level of customer satisfaction.
Thanks & Regards,
Neel Patel
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 details and budget. Thanks.
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.
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.
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.