Variables, data types, strings, operators, and your first programs
Learn Python from scratch. Write your first Python program, understand print(), variables, and basic syntax — all running directly in your browser.
Master Python variables, data types (int, float, str, bool, None), type checking, and type conversion with hands-on examples and exercises.
Master Python integers, floats, and arithmetic operators. Learn math operations, number conversion, rounding, and real-world calculations with interactive examples.
Learn how to create, access, slice, and manipulate strings in Python. Master indexing, slicing, concatenation, and common string operations with interactive examples.
Master Python string methods: upper(), lower(), strip(), split(), join(), replace(), find(), and more. Interactive examples and exercises for every method.
Master Python string formatting with f-strings, .format(), and the % operator. Learn number formatting, alignment, and real-world formatting patterns.
Master Python booleans, comparison operators, logical operators (and, or, not), truthiness, and operator precedence with interactive examples.
Master Python print() with sep, end, and formatting. Understand input() for user interaction. Learn output patterns used in real programs.
Learn implicit and explicit type conversion in Python. Master int(), float(), str(), bool() and avoid common conversion errors.
Learn to write clean, readable Python code. Master comments, docstrings, naming conventions, and PEP 8 style guidelines that professional developers follow.