
Explore the basics of Python in an easy, beginner-friendly course designed for new programmers. Learn why Python's demand and cross-platform use attract major companies like Google and IBM.
Explore Python fundamentals from variables to collections and flow control, then master exception handling across 57 interactive lectures with quizzes and assignments.
Learn the basics of Python by building a strong foundation in objects, functions, iterators, and modules, and confidently showcase your skills on your CV to attract recruiters.
Download the latest Python version (3.5.2) from python.org for Mac or Windows, then run the installer and grant permission to complete the installation.
Learn the basics of Python by writing your program that prints hello world and exploring variables. Install Python, use an ide, and practice debugging to fix syntax errors with quizzes.
Learn how to use Python variables, assign values, and print them, with rules for valid names—letters, numbers, underscores—and how to avoid reserved keywords and starting with a number.
Learn the basics of Python strings: literals in single or double quotes, string concatenation with +, whitespace and newline handling, and escaping quotes to prevent syntax errors.
Explore arithmetic with numbers in Python, performing addition, subtraction, multiplication, and division, using brackets to prioritize operations, and handling integers, floats, and type errors with str().
Learn the boolean data type in Python, using true or false outputs and 1 or 0 representations, with examples of how booleans drive output.
Explore Python collections, including lists, tuples, sets, and dictionaries, and learn debugging techniques to fix syntax errors. Practice with end-of-chapter assignments and quizzes to measure progress.
Explore how Python lists store sequences of items, including strings and numbers, in square brackets, learn zero-based indexing, and how to add, delete, or modify elements.
Learn to create a Python list with square brackets, add string elements in quotes, separate by commas, and print the list to view zero-based indexing.
Learn how to access items in a list using zero-based indices and negative indexing, including printing specific elements with square brackets and retrieving the last item.
Learn how to manipulate Python lists by adding, replacing, and removing elements, illustrating the dynamic nature of lists you can create, access, and modify.
Replace elements in a Python list by assigning a new element to the list index, using the syntax variable_name[index] = new_element, then print to verify.
Add a new element to a list using the append syntax, starting from creating a list and then adding John to the existing list, and print the results to confirm.
Learn how to remove elements from a list in Python using the pop and remove methods, including removing the last item and removing by value.
Organize a Python list for easy data access by sorting in ascending order with sort and sorted, reversing when needed, and using len to measure length while avoiding index errors.
Learn about tuples in Python, defined with parentheses, immutability of elements, and how to access items by index, unlike lists, by reassigning the variable to update values.
Learn how to slice elements from lists or tuples in Python using start, stop, and optional step, including negative indices and omitting the last index.
Learn Python list slicing by specifying start and end indices and a step. See how zero and negative indices affect the sliced outputs.
Explore how to slice a tuple and compare it with list slicing. Learn to print whole tuples, access elements by index, and use step values to select every second item.
Explore Python sets as immutable mathematical collections of unique objects, where each element appears only once and duplicates are ignored, reflecting the set's properties.
Learn three ways to create sets in Python: using curly braces, the set() function, and converting a list to a set, while noting that sets are unordered.
Learn how to modify a set in Python by adding elements with add and update, and removing elements with discard and remove, with practical examples.
Create, clear, and copy Python sets, then perform union, intersection, and difference operations, including in-place updates.
Explore how dictionaries in Python store data as key-value pairs with unique keys, using curly braces, while values may repeat and there is no particular order.
Learn how to create dictionaries in Python using curly braces or dict(), with key-value pairs and practical examples.
Learn how to access dictionary elements in python by using square brackets or the get method, and understand how missing keys return None through simple fruit key examples.
Learn how to modify Python dictionaries, which are mutable, by adding new keys and updating existing values with the assignment operator.
Learn how to delete or remove elements from a dictionary using pop, popitem, del, and clear, and see how the dictionary becomes empty.
Explore Python dictionary methods and built-in functions to manage dictionaries, check emptiness with len, compare dictionaries, and produce a sorted list of keys.
Master flow control in Python by examining code blocks, indentation, and statements like if, loops, break, and continue, plus debugging and practice assignments.
Explore how Python uses code blocks and indentation as syntax, with four spaces signaling blocks and controlling if and else blocks and print statements.
explore how Python uses if statements to check a single condition, using indentation for the block, with an age greater than or equal to 18 example printing a message.
Learn how to use the if else statement in Python to evaluate two conditions, with syntax showing if, else blocks, and examples like age checks for site access.
Learn conditional branching with if, elif, and else in Python, testing multiple conditions with clear syntax and an age example to drive print statements.
Learn how to check equality in Python using the double equals operator in if statements, cover case sensitivity and practical examples.
Explore the not equal to operator and equality checks in python, using if statements to compare variables like batman versus superman and understand how conditions drive output.
Explore Python basics by checking multiple conditions with and/or in if statements, using relational operators to compare values like x and y and determine when to print results.
Explore repetitive execution in python using for and while loops and the range function, showing how iteration variables and fixed sequences control flow and end when elements are exhausted.
Learn how the while loop uses a condition to control iteration, with assignments, increments, and print statements that exit when the condition becomes false.
Learn how the else statement works with for and while loops in Python, running code after a loop exhausts its sequence and handling found or not found outcomes in lists.
Demonstrate using the else statement with a while loop in Python. Begin with count at zero, loop while count is less than five, then run the else block.
Discover how the range function in Python generates an iterator, supports start, stop, and step, handles positive and negative steps, and works with list to display sequences.
Master Python flow control by using the break and continue statements to exit loops, alter for and while behavior, and see how break exits the loop early with clear examples.
Learn how the continue statement affects a for loop by skipping the rest of the current iteration and jumping back to the loop start, demonstrated with a list example.
Explain how the Python pass statement acts as a null operation to satisfy syntax in if blocks and loops when no action is needed, preventing syntax errors.
Explore the program structure in Python, learn how to create and use functions, and master anonymous functions (lambda) with debugging methods, assignments, and quizzes.
Explore how to define and call functions in Python, pass arguments, use default values, return values, and understand local and global variables.
Discover how Python's anonymous lambda functions offer a nameless, single-expression alternative to def, with any number of arguments, often used with map and filter to apply expressions to elements.
Learn to work with Python libraries, store and retrieve functions, create models, import modules, fix syntax errors, and reinforce knowledge with assignments and quizzes.
Learn how to store and retrieve Python functions using modules to reuse code across programs, while hiding implementation details for security.
Learn how Python modules split large programs into small, reusable files, store commonly used functions in a module, and import them to reuse code without rewriting.
Define a function named add with two parameters a and b that returns a plus b, and save the program as a module with a .py extension.
Learn how to import modules in Python, use the import keyword, rename modules with as, import specific names, and explore module content with the dir function and built-in functions.
Explore file handling in python by learning how to read, write, and modify files from any location using built-in functions.
Learn how to use Python's open function to open a file by name, specifying its path and access mode (read, write, or append) in your program.
Open a file object and learn to check if the file is open or closed. Access the file name and read its content using file object attributes.
Learn how to close a file in Python using the close method and verify its status by checking whether the file is closed after the operation.
Explore reading and writing files in Python using open, write, and read methods; learn how write overwrites existing content and how to read bytes, line, or lines from a file.
Learn how to open and close a file in Python, verify the file's state with a boolean check, and manage file objects using syntax and object names.
Learn what an exception is in Python and how it can disrupt the normal flow of a program or file handling. Immediately handle exceptions to keep the program running smoothly.
Understand what an exception is in Python, how it disrupts the normal flow of a program, and that an exception is a Python object representing an error.
Master Python's try and except blocks to handle errors gracefully, using try, except, else, and multiple exceptions for robust file operations and resilient programs.
Explore how to use the try and except statements in Python to handle single or multiple exceptions, including the no-exception form, with an else block.
Explore how the finally block guarantees execution of code in Python, regardless of exceptions, and how the else clause can accompany try blocks, with finally used as needed.
Python is a very simple yet extremely powerful programming language. It is a scripting language that is widely used for prototyping to get work up and running in a short amount of time.
This course assumes no programming experience and slowly builds the skills you need to take on larger challenges.
This course is divided into below chapters
Basics of Python Programming Variables (Numerical/Boolean/String) Collections (Lists/Tuples/Sets/Dictionaries) Flow Control (For Loops/While Loops / Repetitive Execution/Conditional Execution/Iterative Execution) Program Structures(Named Functions/Anonymous(Lambda Functions)/Generator Functions Libraries
Every lecture will explain the fundamentals in detail before taking you to actual code execution.
By the end of this course, you will be a mature Python programmer. Make use of the expertise to design programs of your choice and be ready to take your Python skills in any direction that you need.