Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # A function called easy_money with no parameter that has a return value of 100
- def easy_money():
- return 100
- # A function called best_food_ever with no parameter that has a return value of "Sushi"
- def best_food_ever():
- return "Sushi"
- # A function called convert_to_currency that accepts a single parameter (integer)
- # The function also convert an argument to a str and prepend it with a $ when
- # returning the result
- def convert_to_currency(currency: int):
- converter = "$" + str(currency)
- return converter
- print(easy_money())
- print(best_food_ever())
- print(convert_to_currency(15))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement