• + 4 comments

    Oh wow my code is exactly like yours. Just one difference: when you read the input, you convert it to integer and I convert it to float. Float covers all the cases no?

    import math
    AB = float(input())
    BC = float(input())
    
    print(str(int(round(math.degrees(math.atan2(AB, BC)))))+'°')
    

    Also for those in need: in PC, to get the 'Degree Symbol' press Alt+0176 in the numeric keypad. It should do the trick.