0
Question about the underscore need to clarify
How come i need an underscore if i were to write roll_again="yes"
4 odpowiedzi
+ 1
python doesn't like spaces in variable names/class names/function names. You can either use underscores as replacements, or make the name all one word, separating words with capitals such as:
spillMilk or RollAgain
0
You can name your variable the way you like, as long as it is (somehow) consistent within your code. You can name if rollAgain, if you want. It is just a convention to write variables with an underscore between words in Python
0
Thanks for clearing that up for me ! Im new to this stuff but i love learning it
0
Thanks for clearing that up for me ! Im new to this stuff but i love learning it