Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
constant: from math import pi print(pi) # output 3.14159 etc. print(-pi) # output -3.14159 etc. print(abs(-pi)) # output 3.14159 etc. string: print(abs("xyz")) # output TypeError
6th Sep 2018, 6:47 AM
David Ashton
David Ashton - avatar