can please show me part of code makes int variable move down without being asked so.
def option(): file = open('firesideresults.txt') print ("\t\tplayer nickname\t\tmatches palyed\t\tmatches won\t\tmatches lost\t\tpoints") line in file: if line.split(',')[2] > "0": player_name = line.split (',')[0] matches_plyd = line.split (',')[1] matches_won = line.split (',')[2] matches_lost = line.split (',')[3] points = int(matches_won)*3 print("\n",player_name,"\t\t\t",matches_plyd,"\t\t\t",matches_won,"\t\t",matches_lost,"\t\t",points,) continue file.close()
i expect results laid out in format
roy 17 10 7 30
however output is:
roy 17 10 7 30
i want know how make 'points' variable next other variables in line. thank you.
Comments
Post a Comment