I want to learn about def
because that looks very the most intriguing how you can make it kind of like reusable
but when I was learning I had come some problems with understanding
def main():
#renewable code
main()
if __name__ == "__main__":
main()
I don't understand what __name__
and __main__
is but I can remember learning something about magic and then nothing makes any sense to me anymore after that
I think there is something like main()
is the default but can be called anything but the first one must be main()
or something like that