Advertisement
ancestor_tunji

#negative_energy_function

Feb 11th, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. #negative_energy_function
  2. def negative_energy_function(number = "a"):
  3.     if int(number) < 0:
  4.         print(-1 * int(number))
  5.     else:
  6.         print(int(number))
  7.        
  8. negative_energy_function(3)
  9. negative_energy_function(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement