Skip to content

Commit

Permalink
Add docstring to fix pylint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a committed Oct 20, 2024
1 parent 9220f1c commit 29805dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def add_xp(self, amount): # add XP
self.check_level_up() # check if user has leveled up

def check_level_up(self): # check if user has leveled up
"""
Check if the user has leveled up.
"""
while (
self.xp >= self.xp_required
): # if user XP is greater than or equal to XP required
Expand Down

0 comments on commit 29805dd

Please sign in to comment.