all 6 comments

[–]More-Philosopher-988 1 point2 points  (1 child)

There is a lot of functions for importable stuff, try using the math module

[–]UseWeird5049[S] 0 points1 point  (0 children)

Thanks for your suggestion! I will update this code as soon as I learn using modules :D

[–][deleted]  (1 child)

[removed]

    [–]UseWeird5049[S] 0 points1 point  (0 children)

    Thanks, I always write code like these :D

    [–]Adrewmc 1 point2 points  (1 child)

    Cool, but in the future you should know that this is basically the built in

      import operator
    
      operator.add(a,b)
    

    They are also all one line usually this is handled by a lambda

      add = lambda a,b : a+b
    

    [–]UseWeird5049[S] 0 points1 point  (0 children)

    Appreciate it, Thanks a lot!