dodgers=score = input () yankees=score = input () cubs=score = () print("Last night the Dodgers scored",

Discipline: Computer science

Type of Paper: Question-Answer

Academic Level: Undergrad. (yrs 3-4)

Paper Format: APA

Pages: 1 Words: 275

Question

dodgers=score = input ()
yankees=score = input ()
cubs=score = ()

print("Last night the Dodgers scored", dodgers=score,)
print("The Cubs scored ", orioles_score)
print("The Yankees scored", yankees=score)
print("The total number of runs scored was", dodgers=score + yankees=score + orioles_score)

PLEASE FIX Syntax errors in Python


Expert Answer

Step-by-step

Step 1/2
We fixed the following errors in the code snippet:

i) variable names separated by _ and not =

ii) inputs to be type casted to int

iii) No commas after variable name.
These fixes were made to get the running code
Step 2/2
Final answer
Output of the code produced is attached in the figure with the code itself. Please upvote :)


Code