def greater_than(x, y):

if x > y:

return x

if y > x:

return y

if x == y:

return “These numbers are the same”

def graduation_reqs(credits):

if credits >= 120:

return “You have enough credits to graduate”

print(graduation_reqs(120))

it works, but won’t let me continue??

6 Likes

mowglie
#2
I didnt get to continue either until I added the value for x & y:

ddef greater_than(x, y):

**y = 10**

**x = 10**

if x > y:

return print(x)

if y > x:

return print(y)

if y == x:

return “These numbers are the same”

mtf
#3
Since you have parameters, then use them inside the function and pass the actual values as arguments.

```
def greater_than(x, y):
if x > y:
return x
if y > x:
return y
return “These numbers are the same”
print (greater_than(10, 10))
```