For integers, the previously discussed operations +, -, * and are defined **. The division operationfor integers returns a value of type float. Also, the exponentiation function returns a value of type float if the exponent is a negative number.
But there is also a special operation of integer division, performed by discarding the fractional part, which is denoted by //. It returns an integer: the integer part of the quotient. For example:
>>> 17 // 3
5
>>> -17 // 3
-6
Another operation close to it: this is the operation of taking the remainder of division, denoted by %:
>>> 17 % 3
2
>>> -17 % 3
1
Be up-to-date with our recent updates, new problems and answers!
Our goal at this course is to enhance our students’ mathematical intuition by focusing on a deep understanding of mathematical concepts and to enable them to link different concepts and apply their knowledge to solve mathematical problems to help them to improve their performance at Maths exams.
This course guides you through the fundamentals of Python programming using an interactive Python library known as Turtle.
This course encompasses a range of Geometry topics such as coordinate and spatial geometry, introductory trigonometry, angles, parallel lines, congruent and similar triangles, polygons, circles, the Pythagorean Theorem, and more. Emphasis will be placed on reinforcing Algebra skills and enhancing critical thinking through problem-solving in both mathematical and real-world contexts.