Question: Hi. I have a scripting assignment using python and I need help in my code. It keeps coming out blank Here is what I have
Hi. I have a scripting assignment using python and I need help in my code. It keeps coming out blank Here is what I have so far




itservercsumbedu PulTY 0 4 /usr/bin/pythona Detine the tunction home away 3ef home away (ba11park: if ballpark"Ienway park": return "Ecma" return "Away" Define the unction win loss () def win loss thome score, opponent_score): if hone score> opponcntscore: return "Win" else: return "Lcss" tOpen he tile filc open ("2011-0 0x gamas2.txt" line count. = 0 for line in f: line count -line count 1 if lino countse-1: date = 1ine . strip() hcma toam - line.strip () home sccre - int (line) opponent line . strip() opponent_score- int(linal elit line coun 6--2 : olif lina count6-4: elit line coun 6--5: ballpark - linc.strip rint(date,heme_team, home_away (allpark),apponent,win_1oss (homescore,opponent score), home_score."-", pponent score) Indant Text Urnindent Text Read ile Replace Uncut Text Go To Line Next Page ast Line Copy Text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
