The Endless Level XP Function
def find_next_lvl_xp(lvl: int, lvl_xp: int): """ xp required to get to the next level """ if lvl == 1: return 100 elif lvl == 2: return 200 elif lvl == 3: return 300 elif lvl == 4: return 400 elif lvl == 5: return 500 elif lvl == 6: return 600 elif lvl == 7: return 700 elif lvl == 8: return 800 elif lvl == 9: return 900 elif lvl == 10: return 1000 elif lvl == 11: return 1100 elif lvl == 12: return 1200 elif lvl == 13: return 1300 elif lvl == 14: return 1400 elif lvl == 15: return 1500 elif lvl == 16:
A dark-themed code editor shows a Python function calculating the XP required for each level with a long chain of nearly identical if/elif statements. The joke is that the function is needlessly repetitive instead of using a simple formula, making it a relatable reaction to inefficient or beginner-level code. EN: A dark-themed code editor shows a Python function calculating the XP required for each level with a long chain of nearly identical if/elif statements. The joke is that the function is needlessly repetitive instead of using a simple formula, making it a relatable reaction to inefficient or beginner-level code.
- @eternalclassic / 17265 2022-08-07
- Type
- image
- Size
- 716×720 · 28.0 KiB
- Mood
- sarcastic, relatable
- Language
- en
- Added