Another Python Hangman I have finished my Python Hangman app with very basic code.

import random
import sys


# lets set some variables
wordList = [
"lion", "umbrella", "window", "computer", "glass", "juice", "chair", "desktop",
 "laptop", "dog", "cat", "lemon", "cabel", "mirror", "hat"
           ]

guess_word = []
secretWord = random.choice(wordList) # lets randomize single word from the list
length_word = len(secretWord)
alphabet = "abcdefghijklmnopqrstuvwxyz"
letter_storage = []



def beginning():
    print("Hello Mate!\n")

    while True:
        name = input("Please enter Your name\n").strip()

        if name == '':
            print("You can't do that! No blank lines")
        else:
            break

beginning()



def newFunc():
    print("Well, that's perfect moment to play some Hangman!\n")

    while True:
        gameChoice = input("Would You?\n").upper()

        if gameChoice == "YES" or gameChoice == "Y":
            break
        elif gameChoice == "NO" or gameChoice == "N":
            sys.exit("That's a shame! Have a nice day")
        else:
            print("Please Answer only Yes or No")
            continue

newFunc()



def change():

    for character in secretWord: # printing blanks for each letter in secret word
        guess_word.append("-")

    print("Ok, so the word You need to guess has", length_word, "characters")

    print("Be aware that You can enter only 1 letter from a-z\n\n")

    print(guess_word)



def guessing():
    guess_taken = 1

    while guess_taken &lt; 10:


        guess = input("Pick a letter\n").lower()

        if not guess in alphabet: #checking input
            print("Enter a letter from a-z alphabet")
        elif guess in letter_storage: #checking if letter has been already used
            print("You have already guessed that letter!")
        else: 

            letter_storage.append(guess)
            if guess in secretWord:
                print("You guessed correctly!")
                for x in range(0, length_word): #This Part I just don't get it
                    if secretWord[x] == guess:
                        guess_word[x] = guess
                        print(guess_word)

                if not '-' in guess_word:
                    print("You won!")
                    break
            else:
                print("The letter is not in the word. Try Again!")
                guess_taken += 1
                if guess_taken == 10:
                    print(" Sorry Mate, You lost :&lt;! The secret word was",         secretWord)


change()
guessing()

print("Game Over!")


So, I have couple questions about my code:


I have started to lean some stuff about classes in Python and I thought "Hey, let's write this Hangman with Classes)" But after some coding I realised, i just made classes with 1 func and instead of func() I just called them class.func() and that's all. Is there any good reason why and how I should use classes in a Hangman game?
I know that code is very basic and at my level I shouldn't exactly mind effectiveness of the code but still - Which Part Should be improved ( not the code itself but my logic there)? I want to write in a "proper" way but my code still looks super basic.
Playability
I ran your game to test it out first, and noticed something odd when a letter is found twice in the same word, such as &quot;glass&quot; here:

Pick a letter
 A
You guessed correctly!
['-', '-', 'a', '-', '-']
Pick a letter
 s
You guessed correctly!
['-', '-', 'a', 's', '-']
['-', '-', 'a', 's', 's']


I'm not sure if that is by design, but as a player I find it odd that it's displayed twice. I found where it originated in the code:
for x in range(0, length_word): #This Part I just don't get it
    if secretWord[x] == guess:
        guess_word[x] = guess
        print(guess_word)

If you just unindent print(guess_word) by two levels, you'll avoid that behavior since it won't run in a loop:
for i in range(0, length_word):
    if secretWord[i] == guess:
        guess_word[i] = guess
print(guess_word)


Printing a raw array like ['-', '-', 'a', 's', 's'] is a bit confusing, at first I didn't know what it was for until I guessed one right and saw the results. So let's make it print something more friendly:
print(&quot;Word to guess: {0}&quot;.format(&quot; &quot;.join(guess_word)))


Pick a letter
 o
You guessed correctly!
Word to guess: - o -


Much better! But it will get a bit clunky to type all that each time, so let's make a utility function for it and we can use it for the print(guess_word) at the beginning of a game too.
def print_word_to_guess(letters):
    &quot;&quot;&quot;Utility function to print the current word to guess&quot;&quot;&quot;
    print(&quot;Word to guess: {0}&quot;.format(&quot; &quot;.join(guess_word)))

Then we just print_word_to_guess(guess_word) whenever we need it. It would also be possible to make an optional different message but default to Word to guess:, but I'll leave that for you as a challenge.

The game also doesn't ever tell me anything about how many chances I have left, so I'm left guessing (literally) until I figure it out. That's very easy to make a small utility function to do:
def print_guesses_taken(current, total):
    &quot;&quot;&quot;Prints how many chances the player has used&quot;&quot;&quot;
    print(&quot;You are on guess {0}/{1}.&quot;.format(current, total))

Then a few code additions:
def guessing():
    guess_taken = 1
    MAX_GUESS = 10
    print_guesses_taken(guess_taken, MAX_GUESS)
    
    while guess_taken &lt; MAX_GUESS:

And:
for i in range(0, length_word):
    if secretWord[i] == guess:
        guess_word[i] = guess
print_word_to_guess(guess_word)
print_guesses_taken(guess_taken, MAX_GUESS)


Your list of words is pretty limited, for future consider perhaps looking for a text file online with a whole bunch of words and just read a random one from it, that would bring more variety!

Code Improvements
main function
You run all your game functions as soon as you make them. It would make more sense to put them inside the __main__ function:
if __name__ == &quot;__main__&quot;:
    beginning()
    newFunc()
    change()
    guessing()

By the way, newFunc() doesn't work well as a name, as it says nothing about what it does. Something like ask_user_to_play() would be much better.

Constants naming
Python doesn't have real constants, but nevertheless, it's good practice to name variables that shouldn't change (by change I mean reassigned to a different values) in ALL_CAPS_WITH_UNDERSCORES. A simple find &amp; replace in an IDE or text editor does the trick to fix your whole script.
GUESS_WORD = []
SECRET_WORD = random.choice(wordList) # lets randomize single word from the list
LENGTH_WORD = len(SECRET_WORD)
ALPHABET = &quot;abcdefghijklmnopqrstuvwxyz&quot;
letter_storage = []


Docstring
It's a good habit to add a docstring to all functions, classes, and modules, to describe for other programmers what the code in question is for. I've done that for the above 2 utility function.

Type hints
Since Python 3, you can now use type hints for your function and method signatures, and use static code analysis tools. This also makes the code easier to read for humans.

Improved code
Here is what I came up with,applying all of the above, and improving the spacing (yours had too many blank lines everywhere). There are likely other things that could be improved, but this should be a good start.
import random, sys
from typing import List

# TODO try to load these from a text file
WORD_LIST = [
&quot;lion&quot;, &quot;umbrella&quot;, &quot;window&quot;, &quot;computer&quot;, &quot;glass&quot;, &quot;juice&quot;, &quot;chair&quot;, &quot;desktop&quot;,
 &quot;laptop&quot;, &quot;dog&quot;, &quot;cat&quot;, &quot;lemon&quot;, &quot;cabel&quot;, &quot;mirror&quot;, &quot;hat&quot;
           ]

GUESS_WORD = []
SECRET_WORD = random.choice(WORD_LIST) # lets randomize single word from the list
LENGTH_WORD = len(SECRET_WORD)
ALPHABET = &quot;abcdefghijklmnopqrstuvwxyz&quot;
letter_storage = []

# Utility functions

def print_word_to_guess(letters: List) -&gt; None:
    &quot;&quot;&quot;Utility function to print the current word to guess&quot;&quot;&quot;
    print(&quot;Word to guess: {0}&quot;.format(&quot; &quot;.join(letters)))

    
def print_guesses_taken(current: int, total: int) -&gt; None:
    &quot;&quot;&quot;Prints how many chances the player has used&quot;&quot;&quot;
    print(&quot;You are on guess {0}/{1}.&quot;.format(current, total))


# Game functions

def beginning() -&gt; None:
    &quot;&quot;&quot;Starts the game&quot;&quot;&quot;
    print(&quot;Hello Mate!\n&quot;)
    while True:
        name = input(&quot;Please enter Your name\n&quot;).strip()
        if name == '':
            print(&quot;You can't do that! No blank lines&quot;)
        else:
            break


def ask_user_to_play() -&gt; None:
    &quot;&quot;&quot;Ask user if they want to play&quot;&quot;&quot;
    print(&quot;Well, that's perfect moment to play some Hangman!\n&quot;)
    while True:
        gameChoice = input(&quot;Would You?\n&quot;).upper()
        if gameChoice == &quot;YES&quot; or gameChoice == &quot;Y&quot;:
            break
        elif gameChoice == &quot;NO&quot; or gameChoice == &quot;N&quot;:
            sys.exit(&quot;That's a shame! Have a nice day&quot;)
        else:
            print(&quot;Please Answer only Yes or No&quot;)
            continue


def prepare_secret_word() -&gt; None:
    &quot;&quot;&quot;Prepare secret word and inform user of it&quot;&quot;&quot;
    for character in SECRET_WORD: # printing blanks for each letter in secret word
        GUESS_WORD.append(&quot;-&quot;)
    print(&quot;Ok, so the word You need to guess has&quot;, LENGTH_WORD, &quot;characters&quot;)
    print(&quot;Be aware that You can enter only 1 letter from a-z\n\n&quot;)
    print_word_to_guess(GUESS_WORD)


def guessing() -&gt; None:
    &quot;&quot;&quot;
    Main game loop to have user guess letters
    and inform them of the results
    &quot;&quot;&quot;
    guess_taken = 1
    MAX_GUESS = 10
    print_guesses_taken(guess_taken, MAX_GUESS)
    
    while guess_taken &lt; MAX_GUESS:
        guess = input(&quot;Pick a letter\n&quot;).lower()
        if not guess in ALPHABET: #checking input
            print(&quot;Enter a letter from a-z ALPHABET&quot;)
        elif guess in letter_storage: #checking if letter has been already used
            print(&quot;You have already guessed that letter!&quot;)
        else: 
            letter_storage.append(guess)
            if guess in SECRET_WORD:
                print(&quot;You guessed correctly!&quot;)
                for i in range(0, LENGTH_WORD):
                    if SECRET_WORD[i] == guess:
                        GUESS_WORD[i] = guess
                print_word_to_guess(GUESS_WORD)
                print_guesses_taken(guess_taken, MAX_GUESS)
                if not '-' in GUESS_WORD:
                    print(&quot;You won!&quot;)
                    print(&quot;Game Over!&quot;)
                    break
            else:
                print(&quot;The letter is not in the word. Try Again!&quot;)
                guess_taken += 1
                print_guesses_taken(guess_taken, MAX_GUESS)
                if guess_taken == 10:
                    print(&quot; Sorry Mate, You lost :&lt;! The secret word was {0}&quot;.format(SECRET_WORD))


if __name__ == &quot;__main__&quot;:
    beginning()
    ask_user_to_play()
    prepare_secret_word()
    guessing()