+ 2
Challenge "Negative numbers"
All numbers, what you will input, must be converted in negative. Like module, but this is reversed module. Input [-9] - Output [-9] Input [-476] - Output [-476] Input [123] - Output [-123] Input [98] - Output [-98]
7 Antworten
+ 8
#You can even enter 5**2
#Python 3
print(-abs(eval(input())))
https://code.sololearn.com/cFoJgPWKf0aq/?ref=app
+ 3
0
My variant:
https://code.sololearn.com/c0cAln8bGy8X/?ref=app
0
-abs(x)