Advertisement
Adehumble

Week3 Coding Exercise 7

Feb 11th, 2020
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #7
  2. def negative_energy(num):
  3.     print(abs(num))
  4.  
  5. print("This program is written to return the absolute value of any number")
  6. user_value=int(float(input("Enter any number of your choice: ")))
  7. negative_energy(user_value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement