
Explore Python comments, including single-line, multi-line, and docstrings, and learn how hash marks and triple quotes document code, with docstrings accessible via __doc__ and help().
explore how python uses variables as memory containers that hold values, allows dynamic typing without declaration, and automatically changes data types when you reassign different values, using type() and print.
Learn rules for naming Python variables: start with a letter or underscore and avoid digits, spaces, or special characters. Avoid reserved keywords, case sensitivity, and use underscores for multiword names.
Understand local and global variable scope in Python. Local variables stay inside functions, globals are available everywhere, and a local name hides a global one when they share same name.
Explore how global and local variables share names, how local scope overrides globals, and how the global keyword enables a local variable to modify a global value in Python.
Explore type casting in Python, distinguishing implicit conversions from explicit ones. See how int, float, str, and bool convert values, and how empty versus non-empty data affect results.
Explore Python input and output by using print and input functions, format strings with placeholders, and print formatting techniques, including comma vs plus, and splitting input for multiple values.
Learn to create Python strings with single, double, and triple quotes, including multi-line and docstrings. Discover that strings are immutable and print-ready, accessible forward or backward.
Learn how strings act as arrays of characters in Python, access elements with forward and backward indexing, and understand string immutability and reassignment to change the whole value.
Learn to slice strings in Python for beginners by using start and end indices with the colon operator to extract substrings from any position, including negative indices for backward ranges.
Explore string modifiers in Python for beginners, including upper, lower, capitalize, strip, format, replace, find, index, and checks like is upper, is lower, is alpha, is digit, and is alphanumeric.
Learn how to concatenate strings in Python using plus, comma, space, percentage operator, join, dot join, and format methods, with practical examples using A as Hello and B as world.
Learn multiple Python string formatting techniques, including the format method with named and index placeholders, empty placeholders, f-strings, and the percent operator for outputs.
Learn how to use the Python escape (backslash) character to include quotes, newlines, tabs, and other special characters in strings, avoiding syntax errors and printing complex outputs.
Explore Python arithmetic operators—addition, subtraction, multiplication, division, modulus, and exponentiation—along with operator precedence and parentheses, plus examples including bitwise, comparison, identity, membership, and logical operators.
Master Python boolean operators and, or, and not by testing expressions for truth with comparisons. See how x = 10 demonstrates true and false outcomes in several tests.
Explore Python membership operators in and not in, demonstrating how they test for a value in strings and collections (lists, tuples, sets, dictionaries) and highlight case sensitivity.
Explore assignment operators in python, including equals, plus equals, minus equals, multiply equals, divide equals, mod equals, flow divide equals, and exponent equals, with examples using A=10 and B=4.
Master Python comparison operators that yield true or false. Apply greater than, less than, equals, not equals, greater or equal, and less or equal to numbers, strings, lists, and tuples.
Explore how identity operators in Python compare objects using is and is not, print memory addresses with id, and distinguish between value equality and object identity.
Explore how if statements in Python evaluate conditions, execute blocks when true, and skip when false, with emphasis on indentation and standalone if usage.
Learn how the else block works with if statements in Python, controlling flow and handling true or false outcomes with examples like less than, greater than, and equal to 20.
Learn how Python uses if, elif, and else blocks to control flow with evaluation, ensuring only one block runs, and see example with less than 20 and equal to 20.
Learn how to use while loops in Python to repeat statements until a condition is false, including break and continue, optional else blocks, and a practical 1–9 example.
Explore Python for loops that execute blocks of statements repeatedly, iterating over strings, tuples, lists, sets, and dictionaries, with range, break, continue, and optional else blocks.
Master Python's range function with start, stop, and step parameters to iterate over sequences. Learn to combine range with the length function to handle dynamic list lengths.
Explore Python lists, a mutable part of sequential data that stores elements of mixed types in square brackets and supports zero-based indexing with forward and backward access.
Explore list indexing in Python, using forward indices from zero and backward indices from minus one, handle nested lists, and print elements with index operations and error handling.
Learn how to slice lists in Python using start, stop, and step, including positive and negative indices, with examples showing sublists from specific ranges.
Learn how to add items to Python lists using insert, append, and extend, with examples showing index-based insertion, end appending, and extending with lists, tuples, or strings.
Explore how to modify list elements in python by index and slice, including single element replacement, multi-element substitution with start and end indices, and handling deletions or additions.
Learn how to remove elements from a Python list using remove and pop, including first occurrence deletion, value error if not found, index-based deletion, and popping the last item.
Learn to copy a Python list without sharing memory addresses, using slicing (colon), start:end with the length function, and the list constructor, and understand the impact of shared references.
Learn the difference between shallow and deep copy in Python lists, why shallow copy shares inner references, and how deep copy creates independent, fully new list structures.
The lecture demonstrates iterating through a list in Python using for and while loops, using range to control iteration, printing elements and indices, and slicing lists.
Learn how to sort Python lists using sort, sorted, and reverse; apply case-insensitive sorting with lower or upper, and customize order with a key function, including sorting by absolute value.
Explore list comprehension in Python to create a new list from an existing one by filtering items, such as numbers divisible by two, reducing code from several lines to one.
Explore Python tuples as immutable, ordered sequences that can hold mixed data types, support indexing and duplicates, and require at least two elements to be recognized as a tuple.
Explore how to index Python tuples using forward (starting at 0) and backward (starting at -1) indices, handle errors for out-of-range indices, and access nested tuples with nested indexing.
Explore tuple slicing in Python for beginners by using start and end indices to extract sublists, including forward and backward indexing with negative indices.
Modify tuple elements by converting to a list, updating values, then converting back. Recognize that tuples are immutable and cannot support item assignment; learn that plus concatenates only tuples.
Iterate through a tuple using for and while loops with range, indexing, and slicing to print elements and their indices from start to end.
Learn how to delete elements from a tuple in Python: tuples are immutable, so convert tuple to a list, delete elements, then convert back, or delete the tuple with del.
Explore Python sets, an unordered collection that cannot be indexed or contain duplicates; learn how to add or delete elements, initialize with curly braces, and check type and length.
Learn how to add elements to a set using add and update, and copy one set into another, while duplicates are avoided and multiple datatypes are supported.
Iterate through set elements using for or while loops, printing values that can appear in any order, and test membership with in and not in on a sample set.
Explore the basics of file handling in Python, including opening files, reading, writing, and appending data, with text and binary modes and practical examples.
Open and read files in Python using read and readline methods, read specific lines or characters, and handle CSV data with split and unpacking, then close the file.
Learn to write and append data to files in Python, including create-if-missing behavior, write mode overwriting, append mode preserving existing data, and reading back to verify content.
Learn how to delete files using os.remove after checking existence with os.path.exists, and delete directories with os.rmdir, handling non-empty cases.
Learn the basics of Python functions, including system defined and user defined functions, parameters, and the return keyword, with examples such as abs and adding three numbers.
Define functions in Python with the def keyword, a name, parentheses, and a colon. Call functions with or without parameters, print results, and use return for values.
Learn the rules for naming functions in Python: keep names short and lowercase. Use underscores or camelCase for names, avoid special characters and keywords, and don't start with a digit.
Learn how to define functions with or without arguments, pass parameters (N1, N2, N3) to sum numbers, return the result, and handle errors for missing or extra arguments.
Learn how to pass function arguments by keyword, so order doesn’t matter and values map by parameter names, as shown with a three-parameter function that adds and subtracts numbers.
Demonstrate using *args to accept variable numbers of arguments, access them by index, and handle errors when arguments are insufficient.
Learn how to use kwargs to accept any number of keyword arguments in Python, capture them with ** before the parameter name, and access keys by name in the function.
Learn how function parameters can have default values, making N2 and N3 optional with defaults of zero, and see how calls with three numbers return their sum.
Explore how a Python dictionary stores key–value pairs in curly braces as an ordered collection, overwrites duplicates, supports multiple data types, and uses len and type to inspect its structure.
Explore how to access dictionary elements by key, using direct key references and the get method, and retrieve all keys with the keys method, demonstrated with a six-pair example.
Learn how Python dictionaries are mutable and how to add or modify key value pairs, using update for bulk changes and validating with prints.
Explore how to remove dictionary elements in Python using four methods: pop, popitem, del, and clear, deleting a key, the last item, or the entire dictionary.
Learn how to iterate through a dictionary in Python using for and while loops, with keys, values, and items methods to print keys, values, and key-value pairs.
The Python basics course is designed to get a deep dive into the Python basic Concepts.
This course is for beginners who would like to learn and enhance their knowledge about Python.
The course consists of theoretical and practical concepts in Python.
This course is completely practical oriented where most of the development scenarios are captured.
If you have a desire to understand and learn Python which is the valuable and in demand skills, then I invite you to join me on this Udemy Learning course. Come on, let's learn together, build new skills, and make a difference in the world. Hope to see you in the course.
The below is the course description.
Description:
Python Basics:
Comments
Variables
Rules for Variable Declaration
Scope Of Variables
Global Keyword
Type Casting
Input & Output
Strings in Python:
Introduction to Strings
String Arrays
String Slicing
String Modifiers
String Concatenation
String Formatting
Operators in Python:
Arithmetic Operators
Logical / Boolean Operators
Membership Operators
Assignment Operators
Comparison Operators
Identity Operators
Loops in Python:
If Statement
If Else statement
If-Elif-Else Statement
While Loops
For Loops
For Loops with Range Function
Lists in Python:
Introduction to List
List Indexing
Slicing of List elements
Add List Items
Modify List Elements
List Copy
Iterating Through a List
List comprehension
Tuples in Python:
Introduction to Tuple
Tuple Indexing
Slicing Tuple elements
Tuple Update
Iterating Through a Tuple
Sets in Python:
Introduction to Set
Add & Copy Set Elements
Iterating Through a Set
File Handling in Python:
Introduction to File Handling
Reading a File
Writing & Appending data to a File
Deleting a File/Directory
Functions in Python:
Introduction to Functions
Creating a Function
Rules for naming Functions
Function Arguments
Keyword as Function Arguments
Function Arguments (*args)
Function Arguments (**kwargs)
Function Default Parameters
Dictionary in Python:
Introduction to Dictionary
Accessing Dictionary Elements
Adding and Modifying a Dictionary
Remove Dictionary Elements
Iterating through a Dictionary
Oops Concept in Python:
Introduction to Classes & Objects
Inheritance