DEV Community

Cover image for I Built a Python Hangman Game and Pushed My First Project to GitHub
Rohan Nilatkar
Rohan Nilatkar

Posted on

I Built a Python Hangman Game and Pushed My First Project to GitHub

I Built a Python Hangman Game and Pushed My First Project to GitHub

Hey everyone, I recently started learning to code โ€” and instead of just watching tutorials, I decided to build something.

This is my first real project as a beginner: a Hangman game written in Python. Itโ€™s also my first time using GitHub to store and share my work publicly.


๐Ÿ”ง What I Used

  • Python (basic syntax, loops, input/output)
  • Random module
  • collections.Counter for comparison
  • Basic terminal I/O
  • Git + GitHub

๐ŸŽฎ What I Built

A classic Hangman game that:

  • Chooses a random word from a list
  • Asks the user to guess one letter at a time
  • Shows blanks and correctly guessed letters
  • Tracks chances and ends the game if you win or lose

๐Ÿ“ GitHub Repo

๐Ÿ”— Hangman Python Game

I added a clean README.md file and structured the repo properly, something Iโ€™m trying to get better at early on.


๐Ÿ’ก Key Takeaways

  • Start small โ€” one finished project is worth more than 10 tutorials.
  • GitHub is powerful โ€” even beginners should use it from day one.
  • Keep learning in public โ€” it builds consistency and community.

๐Ÿ›ฃ๏ธ Whatโ€™s Next

Iโ€™m currently learning HTML + CSS, and Iโ€™ll be building static sites soon. After that, I plan to start JavaScript projects.

Every project I build will go up on GitHub and Iโ€™ll be posting weekly updates on X and Hashnode.


โœ… Connect

If youโ€™re also learning or building in public, Iโ€™d love to connect and exchange ideas:

๐Ÿ“˜ Hashnode: Rohan Nilatkar

๐Ÿฆ Twitter/X: @iixpreyliet

๐Ÿ’ป GitHub: preyliet

Thanks for reading โ€” keep building!

Top comments (2)

Collapse
 
axrisi profile image
Nikoloz Turazashvili (@axrisi)
  • Project Overview

    • Built a Hangman game in Python as a first real project.
    • Utilized GitHub for storing and sharing the project publicly.
  • Technologies Used

    • Python:
      • Basic syntax, loops, and input/output were key components.
      • Employed the random module.
      • Used collections.Counter for letter comparison.
      • Implemented basic terminal I/O.
    • Version Control:
      • Git and GitHub for version control and project management.
  • Game Features

    • Game mechanics:
      • Selects a random word from a predefined list.
      • Prompts user to guess one letter at a time.
      • Displays blanks and correctly guessed letters.
      • Tracks user chances and concludes game on winning or losing.
  • GitHub Repository

    • Hangman Python Game
      • Included a README.md file for documentation.
      • Focused on structuring the repository properly.
  • Key Takeaways

    • Start small: one finished project is more valuable than multiple tutorials.
    • Utilize GitHub from day one, even as a beginner.
    • Build in public to enhance consistency and community engagement.
  • Future Plans

    • Currently learning HTML and CSS for static site development.
    • Plans to explore JavaScript projects after HTML/CSS.
    • Will continue to upload projects on GitHub and provide weekly updates on X (Twitter) and Hashnode.
  • Connections

    • Interested in networking with fellow learners and developers:
      • Hashnode: Rohan Nilatkar
      • Twitter/X: @iixpreyliet
      • GitHub: preyliet
  • Conclusion

    • Encourages continued building and engagement with the coding community.

made with love by axrisi
axrisi.com

Collapse
 
iixpreyliet profile image
Rohan Nilatkar

Thank you Sir I needed this

Some comments may only be visible to logged-in visitors. Sign in to view all comments.