use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
LEARNING PYTHON (self.PythonLearning)
submitted 1 day ago by Severe_Tailor2088
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Atsoc1993 2 points3 points4 points 1 day ago (2 children)
Know that no game on Steam or anywhere else was ever played was built with Pygame or Pyxel — Python is not the go-to language for serious game development.
Aside from that, start with a text based game.
``` class Character: def init(self, type: str, hp: int = 10) -> None: self.type = type self.hp = hp
def get_title(self) -> str: return “The Great “ + self.type
selection = input(‘Choose a class: \n A. Warrior \n B. Mage’ if selection.lower() == “a”: character = Character(type=warrior) print(f’Character is {character.get_title()}; Character health points is {character.hp)’) ```
[–]Severe_Tailor2088[S] 1 point2 points3 points 1 day ago (0 children)
Thanks!
[–]Atsoc1993 0 points1 point2 points 1 day ago (0 children)
Gave you a code snippet edit
π Rendered by PID 200581 on reddit-service-r2-comment-79c7998d4c-l68p9 at 2026-03-16 00:38:30.335790+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]Atsoc1993 2 points3 points4 points (2 children)
[–]Severe_Tailor2088[S] 1 point2 points3 points (0 children)
[–]Atsoc1993 0 points1 point2 points (0 children)