Helpful Python Notes
Python has some special characters and operators that come in handy when writing code. The newline character \n lets you add line breaks within strings, while # creates comments that help document your code but don't execute.
Remember to always cast user inputs when performing calculations. For example, int(input()) or float(input()) ensures you're working with numbers rather than text.
String concatenation uses the + operator to join strings together (like "Hello" + "World" becomes "HelloWorld"), while printing multiple items typically uses commas (like print("Value:", x)).
When performing division, the // operator gives you whole number results (integer division), while % gives you just the remainder. For example, 5 // 2 equals 2 and 5 % 2 equals 1.
Success tip: Keep this reference handy during practice exercises. You'll quickly memorize these operations as you use them regularly in your code!