Procedure tutorialStart with the procedure tutorial.
|
HISTOGRAMS (50 points)
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: **** ********* ******* GIS SUBMIT>> |
MAKE IT LAUGH PROCEDURE (60 points)
Write a procedure make_it_laugh(string) to replace all vowels in an input string with "haha". Print the modified string after to verify your procedure has worked. GIS SUBMIT>> |
CLEAR THE SCREEN (50 Points)
Unlike most languages there isn't a Clear Screen procedure in Python. Can you make one? GIS SUBMIT>> |
SMILE, SAD & SURPRISED (50 points)
Create procedures to print ASCII art for a happy face, sad face & a surprised face. GIS SUBMIT>> |
function challenges
STRING REVERSAL FUNCTION (50 points)
Create a function that returns the reverse of a string GIS SUBMIT>> |
CIRCLE FUNCTIONS (60 Points)
Create 2 functions to calculate and return the area and the circumference of the circle GIS SUBMIT>> |