Getting Started with Python Basics
Python makes coding feel less intimidating because it uses simple commands that make sense. The print() function displays text on screen - just put your message inside speech marks like print("Hello world!"). When you want to start a new line, use \n in the middle of your print statement.
Variables are like containers that store information for later use. A string is any collection of letters (like 'Hello world!'), whilst an integer is simply a number (like 7). When you want user input, use the input() function - just remember to add int() around it if you're expecting a number.
Syntax errors happen when you make mistakes in Python's 'grammar' - like forgetting brackets or speech marks. Don't worry though, everyone gets these! Python will tell you exactly what's wrong so you can fix it quickly.
Top Tip: Interactive mode lets you test code instantly, but script mode lets you save your work. Use script mode for anything you want to keep!




