Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note: Here are a couple of easy ways to create a Python file in windows: (a) Open Notepad in your computer and type the python

image text in transcribed
Note: Here are a couple of easy ways to create a Python file in windows: (a) Open Notepad in your computer and type the python code there (exactly as you would do in python shell or Jupiter Notebook). Then save it as filename.py and choose "all files on type. (b) You can also create a python file using word document, but it will involve an extra step. Open a new file in Word and type the python code there (exactly as you would do in python shell or Jupiter Notebook). Then save it as a "Plain Text" type. Then open the txt file and then save it as filename.py and choose all files on type. This is one of the major assignments in this course. Please let me know or visit my office if you have any questions or need any help. A. Name of the function: MyMean Input: A list (a discrete data) Output: Mean of the data B. Name of the function: MyMedian Input: A list (a discrete data) Output: Median of the data C. Name of the function: Sort A List Input: A list of numbers Output: A sorted list Note: You cannot use the python built-in code sort or sorted in this function. Hint: Use branching and loops D. Name of the function: CountCharacters Input: a one-sentence simple string (without numbers and floats) Output: a list (nl, n2, n3, n4] where nl = total number of Capital letters in the string n2 = total number of small letters in the string n3 = total number of (blank) spaces in the string n4 = total number of other characters (comma, period, etc.) in the string Hint: Use branching and loops

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

=+employee to take on the international assignment?

Answered: 1 week ago

Question

=+differences in home- and host-country costs of living?

Answered: 1 week ago