0
I need someone to explain what comedy groups are and how I can reference them eg monthy python. Are there other examples?
What and when exactly do we use "spam" and "eggs" for? I dont understand when they are called variables. https://code.sololearn.com/cdNFMJU16Os6/?ref=app https://code.sololearn.com/cdNFMJU16Os6/?ref=app
2 ответов
+ 1
Let's say you ask me:
'How can I add two variables in Python?'
Let's say I have only little time and cook up a little example code to show you.
And I don't want to think about good variable names, so I just write the first thing that comes to mind.
Since I am a Monty Python fan and also a Python coder, it may look like this:
spam = 5
eggs = 8
ugly_meal = spam + eggs
It doesn't really mean a lot, you could use any sort of names: fruit, disney princesses, viking gods, or 'blah' and 'blub'...
Sometimes a community ends up using the same random names together.
That makes it very easy to recognize that they're just using random names, and you can follow the example more easily.
+ 1
Ok thanks