logo CodeStepByStep logo

sentence_num

Language/Type: Python parameters print

What output is produced by the following program?

def sentence(num1, num2):
    print(num1, num2)

def main():
    x = 15
    sentence(x, 42)
    y = x - 5
    sentence(y, x + y)

main()
line 1
line 2

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.