Question: Complete the following steps: Let's implement a function called greaterThan, which compares two numbers. The function will take in two parameters, x and y .
Complete the following steps:
Let's implement a function called "greaterThan," which compares two numbers.
The function will take in two parameters, x and yThe function must check to see if x is greater than yIf x is greater than y the function should return true; otherwise, it should return false.
The main section of our program should:
Assign to variable a and to variable bThen, we will call the function storing the result in a variablePrint the output with the follow statement based on your results, The statement variable a is greater than variable b is false.The results should look like this The statement is greater than is false
Remember, when you put your print statement together, you must convert a b and result to a str to make your print statement work. Make sure you use appropriate spacing. You have all of the tools you need to complete this assignment. Good luck.
Now that your program is running, you must test all scenarios, change variables a to and b to then run your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
