I’m trying to write a modular script, with functions -Function 1 age = input(“tell me your age : “) -Function 2 weight = input(“tell me your weight : “) -Function 3 birthday = input(“tell me your birthday : “) at the end, i want to send a mail outside functions like : mail_body = age + weight + birthday Thanks
Tag: global
Running functions siultaneoulsy in python
I am making a small program in which I need a few functions to check for something in the background. I used module threading and all those functions indeed run simultaneously and everything works …
UnboundLocalError: local variable referenced before assignment doesn’t work in command line call
I am aware that there are many solutions to this kind of question. However, none of them seems to have helped with my case. This is the code I’m referring to: from nltk.book import text4 def …
Reason for globals() in Python?
What is the reason of having globals() function in Python? It only returns dictionary of global variables, which are already global, so they can be used anywhere… I’m asking only out of curiosity, …