I am fairly new to python and I am trying to figure out how to use variables from one function in another one. I can't seem to use the return command correctly. All help is appreciated! Here is an example of what I want:

{

```
def a():
    num1 = input("number: ")
    return num1
def b():
    str1 = input("letter :")
    return str1
def main():
    a()
    b()
    print(num1,str1)

```

}