Free course · Lesson 1 of 5
Python Syntax & Setup
In this lesson you will
- Write a script that stores values in variables
- Read input and print a formatted result
Python is one of the world's most widely used languages for automation, data work, and backend systems — precisely because it reads almost like plain English. Instead of curly braces, Python uses indentation (consistent spacing) to group statements, which forces clean, readable code from day one.
- Variables need no type declaration:
name = "Grace"just works. - Core data types:
str,int,float,bool. print()andinput()handle output and keyboard input.- A script runs top to bottom with
python filename.py— no compile step.
💡 Practical Skill: Install Python and VS Code (with the Python extension), then run your first script from the integrated terminal. Track your work with Git from lesson one — professional habits start early.
# No type declarations — Python infers the type from the valuename = "Grace"age = 22city = "Juba"is_registered = True # f-strings are the modern way to build formatted outputprint(f"{name} is {age} years old and lives in {city}.") # input() always returns a string — convert it when you need a numberraw = input("Enter your age: ")next_year = int(raw) + 1print(f"Next year you will be {next_year}.")
Practice exercise
Write a script that asks for your name and the price of two items in SSP, then prints a receipt line with the total.
Key takeaways
- input() always returns text — convert it before calculating
- f-strings build readable output
- Save programs as .py files so you can run them again
Free self-study lesson — no certificate. For the full instructor-led program, see registration options.