Correct me where I am wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Correct me where I am wrong

In math; dividend ÷ divisor = quotient and (possibly a remainder) In python; quotient = dividend // divisor #It will only give the whole number quotient with or without a remainder i.e (an integer) remainder = dividend % divisor #Gets the remainder after a division and 0 if there isn't one. Finally, if you want the answer in float (decimal number) just use a single forward slash i.e dividend / divisor

26th Dec 2017, 4:28 PM
</CEGHAN>
</CEGHAN> - avatar
4 Answers
+ 7
You are rigth 😃
26th Dec 2017, 4:33 PM
Vukan
Vukan - avatar
+ 3
Watch out for this kind of errors as they can spend a lot of your time discovering them. If you need some help you can try using some programs like checkmarx or others but it's recommended to do it on your own. Good luck! Ben.
31st Dec 2017, 3:18 PM
Ben hart
+ 2
correct
26th Dec 2017, 7:35 PM
PRIYANKA SINGHAL
PRIYANKA SINGHAL - avatar
0
it's ok, no worries
26th Dec 2017, 11:59 PM
Misa
Misa - avatar