In this simple assignment you are given a number and have to make it negative. But maybe the number is already negative?

**Example:**
``` c
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` cfml
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` csharp
Kata.MakeNegative(1); // return -1
Kata.MakeNegative(-5); // return -5
Kata.MakeNegative(0); // return 0
```
``` java
Kata.makeNegative(1); // return -1
Kata.makeNegative(-5); // return -5
Kata.makeNegative(0); // return 0
```
``` python
make_negative(1);  # return -1
make_negative(-5); # return -5
make_negative(0);  # return 0
```
``` javascript
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
makeNegative(0.12); // return -0.12
```
``` typescript
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` cpp
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` haskell
makeNegative    1 -- return -1
makeNegative (-5) -- return -5
makeNegative    0 -- return 0
makeNegative 0.12 -- return -0.12
```
``` ruby
makeNegative(1); # return -1
makeNegative(-5); # return -5
makeNegative(0); # return 0
```
``` coffeescript
makeNegative 1    # return -1
makeNegative -5   # return -5
makeNegative 0    # return 0
```
``` elixir
make_negative 1    # return -1
make_negative -5   # return -5
make_negative 0    # return 0
```
``` go
MakeNegative(1)    # return -1
MakeNegative(-5)   # return -5
MakeNegative(0)    # return 0
```
``` julia
Kata.makeNegative(1)  # return -1
Kata.makeNegative(-5) # return -5
Kata.makeNegative(0)  # return 0
```
``` kotlin
Kata().makeNegative(1)  // return -1
Kata().makeNegative(-5) // return -5
Kata().makeNegative(0)  // return 0
```
``` asm
make_negative(1);    // return -1
make_negative(-5);   // return -5
make_negative(0);    // return 0
```
``` groovy
Kata.makeNegative(1)    // return -1
Kata.makeNegative(-5)   // return -5
Kata.makeNegative(0)    // return 0
```
``` php
makeNegative(1)    // return -1
makeNegative(-5)   // return -5
makeNegative(0)    // return 0
makeNegative(0.12) // return -0.12
```
```racket
(make-negative 1)    ; -1
(make-negative -5)   ; -5
(make-negative 0)    ; 0
(make-negative 0.12) ; -0.12
```

**Notes:**

- The number can be negative already, in which case no change is required.
- Zero (0) is not checked for any specific sign. Negative zeros make no mathematical sense.

Difficulty: introductory

Starter code:

def make_negative( number ):
	

Solutions:
def make_negative( number ):
    return -abs(number)

def make_negative( number ):
    return -number if number>0 else number

def make_negative( number ):
    return (-1) * abs(number)

def make_negative(number):
    if number >= 0:
        return (0 - number)
    else:
        return number

def make_negative( number ):
    # return negative of number. BUT: negative in = negative out. zero remains zero
    return -abs(number)

def make_negative(n):
    return n if n <= 0 else -n

def make_negative( number ):
    if number < 0:
        return number
    else:
        return number * -1


make_negative(-1)
make_negative(1)

def make_negative( number ):
    return number - number * 2 if number > 0 else number

def make_negative( number ):
    return 0 - abs(number)

def make_negative( number ):
    if "-" in str(number):
      return(number)
    else:
      return int("-" + str(number))


def make_negative(number):
    return number if number <= 0 else number * -1


def make_negative( number ): 
    # ...
    while number>0:
        number=0-number
    return number

def make_negative(num):
    return -num if num > 0 else num 

def make_negative( number ):
    if number <= 0 :
        return number

    if number > 0:
        return number - (number *2)

def make_negative( number ):
    if number == 0:
        number = 0
    else:
        number = 0-abs(number)
    return number        

def make_negative( number ):
    if number <= 0:
        return number 
    else:
        return ((number / number)-1)- number 

def make_negative( number ):
    if number >= 0:
        return number * -1
    else:
        return number

def make_negative( number ):
    if number > 0:
        number = 0 - number
    return number

def make_negative( number ):
    if number < 0:
        return number
    else:
        return number * -1

def make_negative( number ):
    if number <= 0:
        return number
    else:
        return number * (-1)

def make_negative( number ):
    return number if number < 0 else number * -1

def make_negative( number ):
    return number*(-1) if number > 0 else number

def make_negative( number ):
    if str(number).startswith("-"):
        return number
    elif str(number).startswith("0"):
        return number
    else:
        return int("-" + str(number))

make_negative = lambda x: x * -1 if x >= 0 else x

def make_negative( number ):
    san = str(abs(number))
    san_neg = '-' + san    
    return int(san_neg)


make_negative=lambda n: -abs(n)

def make_negative( number ):
    number = int(number)      #Converts the given number into int type
    
    sq = (number)**(2)        #Squares the number. This will remove the negative sign.
    sqr = int((sq)**(0.5))    #Square roots the square of the number(sq). This will return the original/given number without any negative (-) sign.
    
    neg = (-+sqr)             #Adds a negative sign to sqr
    
    return neg

make_negative=lambda n:-n if n>0 else(n if n<0 else 0)


def make_negative(n):
    return int('-' + str(n)) if n > 0 else n

def make_negative(i):
    """Return a negative number"""

    # Multiply by -1 if the number is strictly positive, else return it
    if i > 0:
        return i * -1
    else:
        return i

def make_negative( number ):
    # ...
    if number <= 0:
        return number
    else:
        number = (number * (-number)) / number
        return number

def make_negative(number):
    return -abs(number) if number > 0 else number

def make_negative( number ):
    if number <= 0 :
        return number
    else:
        return 0-number

def make_negative( number ):
    if number + number < 0:
        return number
    else:
        return -number

def make_negative( number ):
    if number >0:
        return(0-number)
    if number <=0:
        return(number)

def make_negative( number ):
    
    if number < 0:
         return number
        
    if number > 0:
        
        return number * -1
    
    elif number == 0:
        
        return 0


def make_negative( number ):
    if number <0 :
        return 1 * number
    else:
        return -1 * number

def make_negative( number ):
    if number >= 0:
        return 0 - abs(number)
    else:
        return number


def make_negative( number ):
    # check if number is positive
    if number == abs(number):
        return number * -1
    else:
        return number

make_negative = lambda a: -a if a > 0 else a

def make_negative(number):
    if number == 0:
        return number
    if "-" in str(number):
        return number
    return -number

def make_negative( number ):
    return -abs(number)

print(make_negative(1))

def make_negative( number ):
    if number > 0:
        number = '-' + str(number)  ;
        return int(number)
    elif number == 0:
        return 0
    else:
        return number

def make_negative(number):
    if number >= 1:
        result = number - (2 * number)
        return(result)
    else:
        return(number)


def make_negative(number):
    if number<0:
        num=number
    else:
        num=-number
    return num


def make_negative( number ): return number if number < 0 or number == 0 else number * -1

def make_negative( number ):
    # check if number is negative
    if number < 0:
        return number
    # if number is positive change to negative by multiplying by -1
    if number > 0:
        return (-1 * number)
    return number

def make_negative( number ):
    if number > 0:
        number *= -1
        return(number)
    elif number < 0:
        return(number)
    else:
        return(number)

def make_negative( number ):
    a = str(number)
    for i in a:
        if i in '-0':
            return number
    number = -1 * number
    return number
    
    


def make_negative( number ):
    if number < 0:
        return number
    elif number == 0:
        return 0
    else:
        neg = number - 2 * number
        return neg

def make_negative(number):
    if number == 0:
        return 0
    elif number < 0:
        return number
    else:
        number = number * -1
        return number
        
make_negative(15)

def make_negative(number):
    if number >=0:
        number = -number
    else:
        number
    return number

def make_negative( number ):
    if abs(number) == number:
        return number * -1
    else: 
        return number
    # ...


def make_negative( number ):
    if number >= 0:
        return (0 - number)
    else:
        return (0 + number)

def make_negative(number):
    for num in [int(number)]: # konwersja na int
        if num <= 0:
            return(num)
        if num > 0:
            return abs(number) * -1

def make_negative( number ):
     n=-1*number if number > 0 else number
     return n

def make_negative( number ):
    # Check for negative:
    if number < 0:
        return number
    # Check for positivce
    elif number > 0:
        return number * -1
    # Check for 0
    else:
        return 0

def make_negative( number ):
    if number > 0:
        resultado = number - (number*2)
        return resultado
    else:
        return number

def make_negative(number):
    """Converts given number to negative(-) number if greater than zero."""
    if number <= 0:
        return number
    return number * -1

def make_negative(number):
    if number <= 0:
        return number
    elif number > 0:
        a = number * 2
        b = number - a
        return b

def make_negative( number ):
    result = 0
    if number > 0:
        result = number * -1
    elif number <= 0:
        result = number
    return result

def make_negative(number):
    neg_no = "-{}".format(number)
    return number if number < 0 else int(neg_no)

def make_negative( number ):
    # ...
    if number > -1:
        return number * -1
    elif number == 0:
        return number
    else:
        return number

def make_negative( number ):
    # ...
    result=0
    if number>0:
        return(number*-1)
    elif number==0:
        return(0)
    else:
        return(number)


def make_negative( n ):
    return n-n*2 if n>=0 else n

def make_negative(number):
    if number == 0:
        return 0
    elif number < 1:
        return number
    else:
        return -number

def make_negative( number ):
    return number * -1 if number > 0 else number or 0

def make_negative (number):
    """ Преобразовывает число в отрицательное"""
    if number <= 0:
        return number
    else:
        return number * (-1)

def make_negative( number ):
    a = list(str(number))
    return -1*number if a[0] != "-" else number

import math
def make_negative(number):
    if (number<0):
        return (number)
    elif (number>0):
        return(-number)
    else:
        return(0)

def make_negative( number ):
    if number == 0:
        return number
    if number > 0:
        return number*-1
    else:
        return number

def make_negative(number):
    negative = 0 #define main var
    if number>0:
        negative=-number
    else:
        negative=number
    
    return negative

def make_negative( number ):
    # ...
    if(number > 0):
        return int("-{}".format(number))
    elif number ==0:
        return 0
    else:
        return number

def make_negative( number ):
    if number == 0:
        return 0
    elif number > 0:
        number *= -1
        return number
    elif number < 0:
        return number

def make_negative( number ):
    if number == 0:
        return 0
    if number < 0:
        return number
    else:
        return number - 2*number

def make_negative( number ):
    if(number!=0):
        if(number<0):
            return number
        return -number
    return 0

def make_negative( number ):
    if number <= -1:
        return number
    elif number == 0:
        return 0
    else:
        return (number - (number * 2))
    # ...


def make_negative( number ):
        if number == 0:
            return number
        elif number < 0:
            return number
        else:
            number = -number
            return number
print((make_negative(1)))
        


def make_negative(number = 0):
    if number <= 0:
        return number
    else:
        return -number

make_negative = lambda number: 0 if number==0 else number if number < 0 else (number-(number*2))

def make_negative( number ):
    return (1 - 2 * (number >= 0)) * number

def make_negative( number ):
    return int((number**2)**(1/2)*(-1))

def make_negative( number ):
    if(number == 0 or abs(number)/number == -1):
        return(number)
    else:
        return(number * -1)

def make_negative( number ):
    if number > 0 :
        pos = number * -1
        return pos
    elif number < 0:
        neg = number * 1
        return neg
    else:
        return number

def make_negative( number ):
    if number < 0:
        return number
    elif number > 0:
        return (number - (2*number))
    else:
        return 0
    return


def make_negative( number ):
    if number == 0 or number < 0:
        return number
    return -1 * number

def make_negative( number ):
    print(-abs(number))
    return -abs(number)

def make_negative( number ):
    output = ""
    
    if number < 0:
        return number
    else:
        output = "-" + str(number)
        
    return int(output)
    # ...


def make_negative( number ):
    if number==0:
        result=0
    elif number>0:
        result=number*(-1)
    else:
        result=number
    return result    # ...

def make_negative(number):
    return -number if number >0 else --number

def make_negative(number):
    if number>=1:
        number=number-number-number
        return number
    else:
        return number

def make_negative( number ):
    nim = abs(number)
    return -nim

def make_negative(number):
    if number >= 0:
        s =-number
    else:
        s = number
    return s
print(make_negative(1))

def make_negative( number ):
    if number == 0 or number < 0 :
        return (number)
    
    return -(number)

def make_negative( number ):
    if number <0:
        return number
    if number>0:
        answer= number * -1
        return answer
    
    else:
        return number
    # ...


def make_negative( number ):
    if number>=1:
        return 0-number
    else:
        return number
make_negative(42)    


def make_negative( number ):
    if number <= 0:
        return number
    elif number > 0:
        number -= number * 2
        return number


def make_negative( number ):
    if number < 0:
        return number
    else:
        number -= 2 * number
        return number

def make_negative( number ):
    if int(number)<0:
        return number
    return int(number*-1)