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

+1

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

Tanji

3 Answers

New Answer

+5

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

+1

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

0

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 ??