Do all function methods work if you actually write out the actions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

22nd Mar 2017, 7:27 PM
Ivan
Ivan - avatar
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!
13th Apr 2017, 1:45 PM
Akash Khamkar
Akash Khamkar - avatar