Page 1 of 1

Commonly people will use these to explain the

Posted: Sat Dec 28, 2024 4:26 am
by bhasan01854
1. Variables Variables are super, super important in Python. So this is where you just assign values to words or whatever variables you're working with. This is sort of a silly tax price example here, where we assign a numerical value to tax and we do the same for price. Pumpkin is showing you. She's very excited about this example. You simply run this within Python, and you will get your price plus the tax that we have stated here.


So it's kind of a cool application just to quickly get a feel of how variables work and how when you're dealing with numerical variables, you can do a variety of calculations. So that's a super powerful thing within Python and really fun to azerbaijan phone number database play around with. 2. Comments Second big, big important syntax is comments. So if you have something to say, like Pumpkin here, you have to put kind of a hash and then write your comment after that.


code that's after the comment. So you can kind of explain what you were trying to do there. It's also very useful if you want to comment out code. So I use this all the time when I'm kind of fumbling and trying to do different things within a Colab notebook and it's not working. I will just comment out different things and try different ways, and oftentimes that helps me kind of find solutions quickly.