Professional Documents
Culture Documents
IE 555 - Programming For Analytics
IE 555 - Programming For Analytics
IE 555 - Programming For Analytics
Due: The next class period after we finish the first set of notes.
(Exact date will be announced in class)
The purpose of this assignment is to help you gain experience writing Python functions.
Assignment Details
You are asked to write a single Python function named myFunction. This function should be saved
within a file named UPPERCASEUBUSERID homework 3.py, you should replace UPPERCASEUBUSERID
with your UB username in ALL CAPS.
• a – a string;
• b – a non-negative integer;
• c – a non-negative number (could be int or float);
• d – a single-dimensional list;
• e – a string, int, or float;
• f – a string representing a filename for a .csv file that will be saved in the same directory
(folder) as your .py script.
Your function should return (output) the following information, in this order:
1
Example Function Inputs/Outputs
As an example, suppose someone calls your myFunction function via a Python terminal as follows:
NOTE: You should experiment with using different inputs to verify that your code works properly.
Grading
• If you correctly submit your homework by the due date, you will have earned 100 points (the
maximum score) on this assignment.
• The TA will notify you if your submission has any errors. In such a case, you will need to
re-submit your assignment.
– Each re-submission of your assignment will result in a 10-point deduction.
Send an email, with a subject of “IE 555 Homework 3”, to the course TA (Hadi Feyzollahi,
hadifeyz@buffalo.edu). Be sure to include your UPPERCASEUBUSERID homework 3.py file as an
attachment.