Skip to content

Instantly share code, notes, and snippets.

View xodene's full-sized avatar

Maximillian Polhill xodene

View GitHub Profile
@xodene
xodene / hangman.py
Last active March 20, 2018 16:54
Simple Hangman Game in Python. Written as a beginner exercise for the CGCC Coding Club.
word = "homecoming"
word_progress = ""
for i in range(0, len(word)):
word_progress += "_"
def update_solution(index, c):
#convert the string to a list
char_list = list(word_progress)
char_list[index] = c
#convert the list back into a string