Coding Quiz
This coding quiz involves using Python's integer division operator //
to divide two provided numbers and return the result as an integer.
Write a function that takes two integers as input, divides the first argument by the second, and returns the result as an integer.
Parameter Format
def solution(number1, number2): return # Write code here
Constraints
-
The two numbers given as input are integers.
-
When dividing the first argument by the second, the integer part of the division result should be returned.
-
The divisor (denominator) must not be 0. Although exception handling is generally necessary, it is not considered in this particular coding quiz.
Input and Output Examples
-
Input:
(10, 3)
-
Output:
3
-
Input:
(15, 4)
-
Output:
3
-
Input:
(9, 2)
-
Output:
4
Guidelines
AI Tutor
Publish
Design
Upload
Notes
Favorites
Help