+ 2

In python, how // and % used in mathematical problems?

I'm a python learner. It is very important for me to know me about these symbols. Please tell me about these as soon as possible.

13th Dec 2022, 6:26 AM
Dibakar Acharjee
Dibakar Acharjee - avatar
6 Respuestas
+ 7
Dibakar Acharjee , since you have started with sololearn just a few days ago, it is recommended to start learning from the *python for beginner* tutorial. https://www.sololearn.com/Course/Python-for-Beginners/?ref=app additional: here is a link to a short tutorial about the use of "//" (floor division) and "%" (modulo division): https://www.sololearn.com/learn/Python/4430/?ref=app
13th Dec 2022, 7:23 AM
Lothar
Lothar - avatar
+ 2
# Hi, Dibakar Acharjee ! # Here's an example:' t = 128 # Minutes. print(f"{t} minutes = {t//60} hours and {t%60} minutes.")
13th Dec 2022, 6:50 AM
Per Bratthammar
Per Bratthammar - avatar
+ 1
Thanks, everyone. My confusion is now clear.
13th Dec 2022, 1:30 PM
Dibakar Acharjee
Dibakar Acharjee - avatar
0
What about %
13th Dec 2022, 6:34 AM
Dibakar Acharjee
Dibakar Acharjee - avatar