Quiz Week 4

This were the instructions posted by the teacher:

For this quiz I want you to (in class) create a program with two functions:

  • def minimum_three(x, y, z):  # returns the value that is smallest of x, y and z
  • def sum_squares(x, y, z): # returns the value of the sum of squares of x, y, z

Here is a screenshot of my code:

Edit: I missed an underscore on line 22.

Edit 2: I missed the ” : ” on line 24 after “__main__”: Running the code should be fine now.Quiz Week 4

After saving the file I will run it on Terminal, here is the result:

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s