write the code that will demonstrate maths absolute function by computing and print the absolute value of 6 and - 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

write the code that will demonstrate maths absolute function by computing and print the absolute value of 6 and - 3

17th Nov 2020, 8:21 PM
Prerna Keshkar
Prerna Keshkar - avatar
3 Answers
+ 3
print(abs(6), '&' ,abs(-3))
17th Nov 2020, 8:25 PM
Jayakrishna 🇮🇳
+ 3
Sousou I added it to looking good in the output.. Otherwise It looking like 63 May Beginners may confuse... Edit: added now & instead of ','
17th Nov 2020, 8:34 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 no need for the ', '
17th Nov 2020, 8:31 PM
Sousou
Sousou - avatar