
Learn Python basics, including difference between interpreted and compiled languages and how an interpreter works. Discover IDEs, install via Anaconda, and run Python in interactive and script modes.
Explore integrated development environments, or ides, that let you write, test, and debug Python code in one place, with syntax highlighting and easy execution without the command line.
Explore Python interpreter modes: interactive mode provides feedback and history of executed statements, while script mode runs code from a file and uses print to display results.
Install the Anaconda distribution to get Python 3 with popular libraries and the Jupyter notebook. Download the latest version for Windows, macOS, or Linux and follow the installer.
Explore how the Anaconda Jupiter notebook lets you install Python, launch a local server, edit and run code in code and markdown cells, and export notebooks.
Explore the differences between Python 2 and Python 3, including Unicode support, print as a function, and improved division; learn how to use the future module for compatibility.
Explore Python data types, including integers, floating point numbers, complex numbers, strings, booleans, and structures like lists, sets, dictionaries, and tuples, and learn how variables auto-assign types.
Convert between integers and floats in Python with int and float; perform mixed-type operations with automatic promotion to float, and use * and ** for multiplication and powers.
Learn the rules for defining variables in Python, including valid starting characters (letter or underscore), allowed alphanumeric and underscore characters, case sensitivity, reserved keywords, and avoiding built-in function names.
Learn how Python variables can change type by reassigning values; you can start with an integer and later assign a string, with no error, demonstrating dynamic typing.
Explore how Python variables act as pointers to memory locations and how immutable data types like integers, floats, and strings resist in-place changes.
Explore Python assignment and compound operators like x = x + y and x += y to update variables, and learn operator precedence and parentheses that override it.
Explore Python division across versions: Python 2's classic division truncates integers (5/2 = 2), Python 3's true division yields 2.5, and floor division with // truncates toward minus infinity.
Learn to import and use Python's math module to access constants like pi and functions such as sqrt, factorial, ceil, floor, and abs via dot notation.
Practice exercise on numeric data types in Python: determine data types, perform float division of 7 by 2, use modulo, convert 'three' to float and int, and study assignment operators.
Master Python file input output with open to create and manipulate files, use modes r, w, a, and perform read, write, append, seek, and close.
Explain how the print function outputs strings and objects to standard output, with separators, end parameter, and an option to write to files.
Learn how the input function captures user text in Python, uses prompts, assigns the input to variables, and demonstrates converting input to integers with int().
Explore Python's built-in help to view documentation for objects like len and strings, and use tab completion to discover string and list methods such as capitalize, isalpha.
Learn how the Python range function generates integers from start to stop using an optional step, iterate with a for loop, and convert the range to a list.
Learn how Python treats strings as sequences of Unicode characters created with single or double quotes, and master indexing—zero-based and negative—including syntax errors and index errors.
Learn how to convert numbers to strings with the str method, and convert strings to numbers using int and float, with practical notebook examples.
Learn python string slicing with the colon operator, using inclusive start and exclusive end. Explore extended slicing to retrieve every other character from 0 to 5.
Explore how strings remain immutable, preventing in place changes and requiring new strings through concatenation, replication, and plus operator. See that indexing and slicing do not alter the original string.
Learn how to format strings in python using the modulo operator and the string format method, with examples for inserting strings, numbers, and floating point values.
Learn how Python string methods manipulate text, honoring that strings are immutable, using dot notation to apply upper, lower, capitalize, count, find, replace, startswith, index, split, and length.
Iterate over a string with a Python for loop to count occurrences of the letter B, then print the total after the loop.
Explore string membership tests using in and not in operators to check if a substring exists in a string, and see how these expressions return booleans for membership validation.
Practice exercises reverse a user input string, count its words and characters, extract the middle three for odd-length strings over seven, and compare string lengths.
Learn boolean types and truth values in Python, using comparison operators like > and ==, the bool() function, and logical, membership, and identity operators to evaluate expressions.
Verify the results of boolean expressions and write boolean expressions using two boolean variables A and B, following the given conditions for each question in this Python programming basics exercise.
Explore Python lists as ordered, mutable collections that can hold any objects; learn to append items, observe memory location changes, and access elements by zero-based and negative indexing.
Slice lists in Python to extract a sublist from index m to n, excluding n. If you omit the end index, it returns the full copy of the list.
Learn to reverse a Python list with slicing by leaving start and end indices blank and using a stride of minus one, producing a reversed sequence.
Explore list comprehension in Python to transform sequences with for item in list and an output expression, including copying lists, squaring elements, and conditional filtering.
Explore Python list methods like append, extend, insert, remove, index, count, pop, reverse, sort, and copy, and learn how in-place modification, concatenation with +, and shallow copies work.
Learn how to convert a list to a string in python using the join method, choosing a separator, and ensuring all elements are strings to avoid errors.
Learn how nested lists in Python work, where a list can contain sublists, and use multi-level indexing to access elements within a sublist.
Explore how list aliasing links two variables to the same memory location, so appending to one list mutates the other, and how slicing creates a separate clone to prevent this.
Practice core list operations in Python 3, including multiplying elements, removing duplicates, slicing, copying lists, list comprehension, converting lists to strings, and handling nested lists.
Dictionaries are mutable, unordered collections defined with curly braces or dict function; access values by keys in square brackets, and keys must be immutable while values can be any type.
Explore essential Python dictionary methods, including clear, get, items, keys, values, pop, pop item, update, delete, and length, with practical examples showing key access, defaults, and updates.
Use in and not in to check a key exists in dict 1; compare dicts for same or different items; iterate with for to display keys, values, and items.
Explore dictionary concepts with practice problems: create a 1–5 keyed dictionary of squares via dictionary comprehension, then copy items from dict1 to dict2 using dict methods until dict1 is empty.
Learn Python tuples, immutable ordered collections defined with parentheses, a trailing comma for single-element cases, containing items of different types, with indexing and slicing.
Tuples are immutable, even when containing a mutable object like a nested list; changing the list happens in place, while the tuple remains, and + or * build new tuples.
Explore Python tuple operations and methods, including all, any, length, max, min, sum, tuple construction, and common methods like index and count.
Learn tuple packing and unpacking in Python, including creating tuples without parentheses, unpacking into variables, and swapping values using packing and unpacking.
Iterate over a tuple with a for loop to print each element, and apply membership in and not in along with simple logical comparisons. Compare memory locations with id.
Practice exercises on tuple mutability, modifying a tuple containing a mutable data type, changing a sublist, unpacking a tuple, and adding elements by converting to a list and back.
Discover how Python sets remove duplicates, store unordered, immutable elements, and support add, update, discard, and remove operations. Explore union, intersection, difference, symmetric difference, and subset, superset, and disjoint checks.
Practice Python sets by creating an empty set and using add and update to include numbers and strings; compare land and water sets to identify unique elements and land-only elements.
Learn Python from the basics - A Layman's guide to Python
This Python course is for beginners - anybody can take this course even without any prior programming experience. Every topic has been explained in detail and in a way that is easy to understand using examples. You can learn the course at your pace and practice the exercises provided at the end of the topics.
In the tutorials, the programming examples are demonstrated either using the Anaconda Jupyter Notebook or the Python IDLE application.
We recommend you to download the latest version (3.6) of Python from the Anaconda Distribution website (covered in the tutorial).
Please feel free to ask questions on any issue that you may face while taking the course, our team would be glad to help you.
#python #programming #beginners #programmers