10 May 2026
Koshin Cabdullahi Cali12 lines of complicated code vs just 8 lines of clear code
Yes. You cannot get output of a void function without using globals. By using using globals you make the code complicated. After calling the void function, you need to know the name of the global variable to access the result. You need to assign it to other variables if you reuse the void function. With functions that return values, everything appears to be cleaner and reusable.
cloudedYes. You cannot get output of a void function without using globals. By using using globals you make the code complicated. After calling the void function, you need to know the name of the global variable to access the result. You need to assign it to other variables if you reuse the void function.
That exam I was "cheating" must be so long😂
cloudedAnd what you did not know yet is that global variables pollute the global scope. You can assign values to it as well, not only read from them. It can get very confusing quickly.
Yes. I learned that now.
It was just an interesting thought I had.
If I am getting the same output, what makes them different?
Now I know.
Thank you for working with me.
If I have any other question, I'd know better than to tag you😂
Replymessage unavailable
That's for the off-topic group. But yes, I remember. What I said. Not you. I don't remember people unless they stay a while.
Replymessage unavailable
Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Replymessage unavailable
Rules in our groups are strictly enforced. It is strongly recommended to read our rules before engaging in any other activity!
⌬ geekom Беляевский @blackeye_origi've wrote a python userbot on telethon
cool, but don't use it here without purpose
Charly RománWhat's sentro and how it is related to python?
It seems to be a python package installer like pip but with advanced security scan befor install
KhadimIt seems to be a python package installer like pip but with advanced security scan befor install
It seems? So you are not sure? Any link?