Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

Python Hangman Game Program Error

$
0
0
Hello this is Gulshan Negi
Well, I am writing a program for making a hangman game in Python but it shows some error at the time of its execution, I don't know what wrong I am doing here.

Here is my source code:
Code:
import random
def select_word():
    words_in_computer_memory = ['magazine','stars','computer','python','organisation']
    word = random.choice(words_in_computer_memory)
    return word
def is_gussed(word, guessed_letter_list):
    count=0
    for letters in word:
        if...
Python Hangman Game Program Error

Viewing all articles
Browse latest Browse all 1987

Trending Articles