Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1.  
  2.  
  3. def add():
  4.     # this function should return the sum of any three numbers
  5.     return x + y + z
  6.  
  7. def subtract(5, y):
  8.     # this function should subtract two numbers and return the value
  9.     return x - y
  10.  
  11. def sum_of_list(some_list):
  12.     # this function should return the sum of all numbers in a given list
  13.    
  14.     count = 0
  15.     for i in some_list:
  16.         pass
  17.  
  18.     return
  19.  
  20. def shout(some_phrase):
  21.     # this function should convert any string you pass into all uppercase
  22.     # and print it
  23.    
  24.     print(some_phrase)
  25.  
  26. def combine_three_lists(x, y, z):
  27.     # this function should combine three lists and remove any
  28.     # repeated numbers in the final list. return the final list
  29.  
  30.     return final_list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement