Calculate abs() value of input -- Python
Question: I just started studying programming and now for a school assignment we have to
make a program in Python that asks the user to input an integer and than
calculates the absolute value of that. I know about the `abs` function. What i
cant figure out is how to assign the users input to the `abs` function.

I would write:

    
    
    a = int (raw_input ("give your number")) 
    int = abs()
    

The school assignment:

Write a program that calculates the absolute value of a number. That is, the
absolute value of -15 is 15, the absolute value of 10 is 10, etc.


Answer: Are you trying to do something like `a = math.abs(a)`? That would assign a to
the abs value of a.

Full code:

    
    
    import math
    a = int(input("Input a number"))
    a = math.abs(a)
    print(a)
    

