logo CodeStepByStep logo

stanford_vs_cal

Language/Type: Python basics console output

Write a complete Python program that computes who won the Stanford-Berkeley football game. The program should ask the user for the two scores. You may assume that the user enters valid non-negative integers. Below is an example dialogue (user input is shown like this):

Stanford: How many points did they score? 87
Cal: How many points did they score? 3
Stanford won!
Complete program: Write an entire program that you could put into a file and run outside of CodeStepByStep.

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.