Python program to show use of user defined functions

1.Write a function that takes a character (i.e. a string of length 1) and returns True if it is a vowel, False otherwise.

2.Define a function that computes the length of a given list or string.

3.Define a procedure histogram() that takes a list of integers and prints a histogram to the screen. For example, histogram([4, 9, 7]) should print the following:

****

*********

*******

Loader Loading…
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

Download

Leave a Comment