**New course!**Every coder should learn

**Generative AI!**

0

# Do all function methods work if you actually write out the actions?

Going over defining functions and the criteria for them and I notice when you spell out the function actions, like add, subtract, multiply etc., they take those as the actual actions instead of string text. Will they do that for all common math expressions?

1 Answer

0

just simply use the symbols for basic functions why to make it lengthy when you can use symbols and make it small in length
Also if you want to carry some little complex operations like finding sqroot or the sin value or cos values something like that then just simply import math at the start and then while performing put math.(function)
eg. for logarithmic values put math.log ()
or for exact value of pi use math.pi etc.
Hope this helps!