Advertisement
Adehumble

Week2 Coding Exercise 1

Feb 7th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #1a
  2. def easy_money():
  3.     print(100)
  4. easy_money()
  5.  
  6. print("-----"*24)
  7.  
  8. #1b
  9. def best_food_ever():
  10.     print("Sushi")
  11. best_food_ever()
  12.  
  13. print("-----"*24)
  14.  
  15. #1c
  16. #This program is also sensistive of accepting floating numbers
  17. def convert_to_currency(currency):
  18.     Money=str(currency)
  19.     print("$" + Money)
  20.        
  21. Money_Value=int(float(input("enter the value of the currency, ")))
  22.  
  23. convert_to_currency(Money_Value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement