What is this j for? | Sololearn: Learn to code for FREE!


What is this j for?

I’m a new learner. can anyone please help me why the answer is 5.0 for the following?( sorry for the silly question). Thanks in advance Print(abs(3+4j))

6/4/2020 8:37:48 PM


3 Answers

New Answer


abs() shows the absolute distance from the 0 point, for complex numbers, too. Please refer to this post below: https://www.sololearn.com/Discuss/2209933/?ref=app


Tanji Plz don't put your links in tags, it's of no use Put your links in the description of the question


Let's look at the code first https://code.sololearn.com/c6vqpbskp8pi/?ref=app which appears to be invalid ... so I'm guessing this is nolonger a question... Tanji ??