how to call a function in another function?
<p>I want to call a function in another function. Is it how it`s done?</p>

<pre><code>#=========#=========#=========#=========#
def text_file():
    filename = 'text.txt'
    return filename

#=========#=========#=========#=========#
def show_log():  ##  Main log function, 
    #filename = 'text.txt'
    if not os.path.exists(text_file()): # if text.txt does not exists than create one
        file(text_file(), 'w').close()

    if os.path.getsize(text_file()) &gt; 0: # if text.txt is not empty show the menu
        log_menu()
    else: # if text.txt is empty
        print
        print "  You have not draw anything yet!"
        print
        raw_input('  Press Enter to continue ')
    return
</code></pre>
