Find Jobs
Hire Freelancers

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.
Project ID: 32236542

About the project

11 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I can do this project for you. Let's discuss more details in private. Looking forward to working with you!
€50 EUR in 1 day
5.0 (8 reviews)
4.0
4.0
11 freelancers are bidding on average €26 EUR for this job
User Avatar
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 in 1 day
5.0 (107 reviews)
6.5
6.5
User Avatar
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 in 7 days
4.9 (57 reviews)
5.2
5.2
User Avatar
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!
€30 EUR in 1 day
5.0 (21 reviews)
4.5
4.5
User Avatar
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
€30 EUR in 1 day
5.0 (15 reviews)
3.8
3.8
User Avatar
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 in 1 day
4.9 (16 reviews)
3.9
3.9
User Avatar
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.
€25 EUR in 1 day
5.0 (7 reviews)
3.6
3.6
User Avatar
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 in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of GERMANY
Cologne, Germany
5.0
2
Payment method verified
Member since Jul 26, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.