Python Forum
Highscore problem, need to print top 5
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Highscore problem, need to print top 5
#4
I am sorry, my bad :) i parsed the name of the player in there, not the score. just change it to:
if len(line_parts) > 2:
    last_high_score = int(line_parts[-1])
Reply


Messages In This Thread
RE: Highscore problem, need to print top 5 - by ThiefOfTime - Jan-29-2020, 01:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with print command in super() akbarza 5 691 Feb-01-2024, 12:25 PM
Last Post: deanhystad
  problem with spliting line in print akbarza 3 460 Jan-23-2024, 04:11 PM
Last Post: deanhystad
  problem with print lists MarekGwozdz 4 778 Dec-15-2023, 09:13 AM
Last Post: Pedroski55
  Problem with print variable in print.cell (fpdf) muconi 0 696 Dec-25-2022, 02:24 PM
Last Post: muconi
  C to Python code conversion print problem anakk1n 1 2,221 May-22-2020, 04:15 PM
Last Post: deanhystad
  problem with print format anna 7 4,441 May-16-2018, 11:28 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020