Can anyone please tell me which python module needs to be imported to invoke the following functions : 1. sin()2.fabs()3.trunc() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone please tell me which python module needs to be imported to invoke the following functions : 1. sin()2.fabs()3.trunc()

14th May 2019, 1:14 PM
Da Talking Pigeon
Da Talking Pigeon - avatar
2 Answers
+ 4
hi, you need to import “math” import math math.sin(...) math.fabs(...) math.trunc(...)
14th May 2019, 4:25 PM
Lothar
Lothar - avatar
+ 1
Yeah thank u sir !
14th May 2019, 4:48 PM
Da Talking Pigeon
Da Talking Pigeon - avatar