Coding Quiz
Create a function that takes two numbers, num1 and num2, and returns True if num1 is greater than num2; otherwise, it returns
False.
Function Parameters
def solution(num1, num2): return # Write your code here
-
Returns
Trueif the left number (num1) is greater than the right number (num2). -
Returns
Falseif the left number (num1) is less than or equal to the right number (num2).
Constraints
-
The numbers provided are integers.
-
The input numbers are non-negative.
Input/Output Example
Input: solution(4, 2)
Output: True
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help