Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
0

Quotient & Remainder

7%(5//2) the answer is 1 but i need to know why

pythonnumeric-operations
11th Sep 2016, 12:32 PM
Kosta Cherniak
Kosta Cherniak - avatar
1 Answer
+ 1
5//2 is 2 because 5 = (2)*2+1 7%2 is 1 because 7 = 3*2+(1)
11th Sep 2016, 6:22 PM
Zen
Zen - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Code coach popsicles challenge
0 Votes
Sarang
2 Votes
Buggy app today
1 Votes
How many program that you've made even a smaal project are good?
0 Votes
What kind of questions do companies ask in Data Analyst interviews (including Python, SQL, Power BI, and Excel)?
1 Votes
??
1 Votes
Programming
0 Votes
Temperature converter( celsius to fahrenheit)
0 Votes
Code coach isn't awarding xp
0 Votes
Alguien me podrĂ­a explicar sobre para que sirve cada tipo de lenguaje de programaciĂłn?
0 Votes