Skip to content

Instantly share code, notes, and snippets.

View mkojoa's full-sized avatar
💻
Probably coding something stupid

Michael Ameyaw mkojoa

💻
Probably coding something stupid
View GitHub Profile
@mkojoa
mkojoa / scoreList.py
Created January 23, 2021 17:23
Adding Grade score to a list in python
# score list
Score = []
#loop 5 times,
#just to accept input from user
#append the user input to score list
for i in range(5):
currentScore = int(input("Please enter score: "))
Score.append(currentScore)
@mkojoa
mkojoa / hangman.py
Created January 23, 2021 17:17
Have you ever played hangman? It's a children's game, normally played by kids when they're supposed to be doing homework instead. If you've never played here are the rules: https://www.youtube.com/watch?v=cGOeiQfjYPk https://www.wikihow.com/Play-Hangman
#!/usr/bin/python3
# Hangman game
import random
class HangMan(object):
# Hangman game
hang = []
hang.append(' +---+')