# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## Combining Conditional Statements and Functions

# *Suggested Answers follow (usually there are multiple ways to solve a problem in Python).*

# Define a function, called **compare_the_two()**, with two arguments. If the first one is greater than the second one, let it print "Greater". If the second one is greater, it should print "Less". Let it print "Equal" if the two values are the same number.

def compare_the_two(x,y):
    if x > y:
        print ("Greater")
    elif x < y:
        print ("Less")
    else:
        print ("Equal")


compare_the_two(10,10)

StarcoderdataJupyterScriptsDedupFiltered