Simple Python Challenges
 

1.0 Define a function max() that takes two numbers as arguments and returns the largest of them. Use the if-then-else in Python. Do not use Python built-in max() function.

2.0 Define a function max_of_three() that takes three numbers as arguments and returns the largest of them.

3.0 Define a function that computes the length of a given list or string. do not use Python len() function built in.

4.0 Write a function that takes a character and returns True if it is a vowel, False otherwise.

5.0 Define a function sum() and a function multiply() that sums and multiplies (respectively) all the numbers in a list of numbers. For example, sum([1, 2, 3, 4]) should return 10, and multiply([1, 2, 3, 4]) should return 24.

(c) Shilpa Sayura Foundation 2006-2017