local variable not defined from function A to function B : I am working with python functions to make a simple text based word guessing in python. But i am facing problems with local variables defined within a function and i don't know which is right way to get data of that particular local variable or perform action from another function to that local variable which is defined within another function, whether use of ```global``` keyword.

i can use ```global``` but some experienced geeks advise to avoid. what is the right way to do the same. It sows ```ask``` is not defined. please suggest me some best practice to do the same.

```
import random
def get_random():
    random_word = random.choice(open('sowpods.txt', 'r').read().split())
    return(random_word)
def board():
    hidden_word = get_random()
    print("Welcome to Hangman!")
    place = ["_" for i in list(hidden_word)]
    print(" ".join(place))
    ask = input("Guess the letter.  ").upper()
    return(ask)

def assing_letters(ask):
    return(ask)

get_random()
board()
assing_letters(ask)
```

P.S. I am a beginner and i have problem with OOP and functions.