Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python for Beginners: Step-by-Step Journey into Programming
Rating: 4.9 out of 5(13 ratings)
31 students

Python for Beginners: Step-by-Step Journey into Programming

Learn Python Fundamentals & Build Your First Python Project, Complete Python Mastery, Unlock Programming Power of Python
Created byMuhammad Ajmair
Last updated 9/2023
English

What you'll learn

  • Introduction to Python and Programming
  • A Step-by-Step Journey into Programming
  • Understanding what Python is and its key features
  • Familiarizing with the Python interpreter and running code

Course content

2 sections87 lectures4h 34m total length
  • Introduction0:51

    Master Python basics, from syntax and types to Python's object model. Learn control statements, conditionals, loops, functions, generators, decorators, and the module system with an example web application.

  • 02 - Exercise files1:23

    Copy and organize the course exercise files to your system, then create working copies and run them in your editor or development environment. Experiment freely to deepen your Python learning.

  • 03 - About Python 32:53

    Explore python three, an object oriented scripting language guided by readability and simplicity. Learn its philosophy, key differences from python two, and how to write clear, efficient code.

  • 04 - Installing Python and Komodo on a Mac10:32

    Install Python 3 on Mac and set up Komodo Edit (free version) to run Python scripts, configure UTF-8 encoding for Python and Python3, and test with a Hello-Dash script.

  • 05 - Installing Python and Komodo on Windo8:45

    Install Python 3 on Windows and set up the free Komodo Edit for Python development. Configure utf eight unicode encoding and create a run command to run Python scripts.

  • 06 - About the overview0:54

    Explore a bird's-eye view of Python syntax, highlighting indentation, objects, and the absence of braces and semicolons. Build familiarity with the language's structure to prepare for detailed features later.

  • 07 - Hello world1:57

    Learn how the hello world program validates your Python development environment by using the print function to display hello world and verify the interpreter and tool chain.

  • 08 - Python anatomy4:36

    Explore the anatomy of a Python script, from comments and the shebang line to imports, the print function, and a common main-guard pattern that governs execution.

  • 09 - Expressions and statements2:38

    Explore the difference between statements and expressions in Python, with examples of assignments, function calls, and tuples, and learn why one statement per line enhances clarity.

  • 10 - Whitespace and comments3:26

    Learn how Python uses whitespace to define blocks through indentation, and how functions, prints, and comments interact, including end-of-line significance and single-line comments.

  • 11 - Using print3:56

    Demonstrate printing literals and variables in Python, using the format method with placeholders and f-strings for Python 3.6+ interpolation, while contrasting legacy Python 2 syntax.

  • 12 - Blocks and scope4:02

    Python uses indentation to define blocks, as with if statements, and blocks do not define scope, so variables remain accessible outside the indented block.

  • 13 - Conditionals3:49

    Explore Python conditionals with if, else, and elif, including one-line conditionals and indentation, showing how to print based on comparisons and why Python lacks a switch statement.

  • 14 - Loops3:07

    Learn how while loops and for loops control execution in Python, with practical examples like iterating over lists, printing elements, and generating a Fibonacci sequence.

  • 15 - Functions4:50

    Learn how Python defines and calls functions using def, handles arguments, defaults, and return values, including None, with primes and range examples.

  • 16 - Objects3:26

    Define a class and create an object to show methods and properties. Use self and dot notation to call quack and walk, illustrating object oriented programming in Python.

  • 17 - Overview1:52

    Explore Python's fundamental built-in types using the type function, with hands-on examples of int, float, string, boolean, and none types, and learn how dynamic typing applies to values.

  • 18 - The string type7:25

    Examine that strings are objects in Python, compare single, double, and triple quotes, and learn formatting with format and f-strings (Python 3.6+), including alignment and leading zeros.

  • 19 - Numeric types15:56

    Explore Python's numeric types, including int and float, and how Python 3 handles division and modulo. Learn to use the decimal module for accurate money calculations rather than floating points.

  • 20 - The bool type3:20

    Explore the bool type and its true and false values; none signals absence, and zero or empty strings evaluate as false, while nonzero numbers and nonempty strings evaluate as true.

  • 21 - Sequence types5:46

    Explore Python's built in sequence types, including lists, tuples, and dictionaries, with mutability and indexing. Learn to use range, for loops, and items to access keys and values.

  • 22 - type() and id()5:50

    Learn how Python treats everything as an object, using type and is instance for type checks. Use id to identify objects and inspect element types in tuples, lists, and strings.

  • 23 - Conditional syntax2:26

    Master Python's conditional syntax with if, elif, and else, using booleans and equality checks, exploring indented blocks and cascading conditions, and comparing to switch statements.

  • 24 - Conditional operators0:52

    Master Python's conditional operators, including comparison (==, !=, <, >, <=, >=), logical (and, or, not), identity (is, is not), and membership (in, not in) for conditional expressions.

  • 25 - Conditional assignment1:50

    Explore Python's ternary conditional operator with examples, showing how the hungry flag selects between 'feed the bear' and 'do not feed the bear', and why an else clause is required.

  • 26 - Arithmetic operators2:32

    Explore Python arithmetic operators, including addition, subtraction, multiplication, division, integer division, remainder, exponent, and unary negative and positive operators, noting Python 3 division yields floats and // and % behaviors.

  • 27 - Bitwise operators5:21

    Explore Python's bitwise operators—and, or, xor, and shift left or right—that operate on individual bits in numbers, with hex and binary demonstrations, not the logical operators used for conditional constructs.

  • 28 - Comparison operators2:17

    Explore Python's comparison operators: less than, greater than, less than or equal, greater than or equal, equal, and not equal, and how they compare two operands in code examples.

  • 29 - Boolean operators3:21

    Explore Python's boolean operators and, or, not; test membership with in and not in; compare identity with is and is not, and learn how strings yield the same object.

  • 30 - Operator precedence1:17

    Understand how Python's operator precedence shapes expression results, with examples like 2 + 4 * 5, and learn to use parentheses to enforce the intended order.

  • 31 - Python loops0:53

    Learn how Python while loops use a conditional expression to control execution and how Python for loops iterate over a sequence, ending when the sequence is exhausted.

  • 32 - The while loop1:57

    Learn how the while loop uses a conditional expression to control repetition in Python, using input to compare user entry with a secret value like swordfish to end the loop.

  • 33 - The for loop1:20

    Master the for loop by iterating over sequences such as tuples and ranges, assigning items to a variable and printing them, with practical comparisons to while loops.

  • 34 - Additional controls6:33

    Learn continue, break, and else in while and for loops. Use continue to shortcut iterations, break to exit early, and else to run only when the loop ends.

  • 35 - Defining a function5:06

    Understand how Python functions work, including defining with def, passing parameters, returning values (or none), and using __name__ == '__main__' to control module execution.

  • 36 - Function arguments8:36

    Understand how Python passes function arguments, including positional and default values, and how mutable versus immutable objects affect calls, with call-by-value versus call-by-reference behavior.

  • 37 - Argument lists2:16

    Explore python variable length argument lists with *args, treating them as tuples, and learn to print items or a default meow when none are provided.

  • 38 - Keyword arguments1:45

    Master keyword arguments and the double-asterisk syntax for passing a variable number of named arguments as dictionaries. Learn to pass a dict with ** and follow kwarg conventions.

  • 39 - Return values1:25

    Explore how Python functions return values, including None, numbers, lists, and dictionaries, and understand how return statements shape a function’s output.

  • 40 - Generators3:57

    Learn how generators yield a stream of values, using a range-like example and an inclusive range variant. Explore argument handling for one to three args and use of type errors.

  • 41 - Decorators5:06

    Learn how decorators use metaprogramming to wrap a function with a wrapper, turning functions into objects, showing scope and decorator syntax, and enabling timing via an elapsed time decorator.

  • 42 - Basic data structures1:10

    Explore Python's basic data structures, including lists (mutable sequences), tuples (immutable), dictionaries (key-value pairs), and sets (unordered, unique values), with syntax using brackets, parentheses, and curly braces.

  • 43 - Lists and tuples5:01

    Learn how lists and tuples differ in Python, exploring mutability, indexing, slicing, joining, and common operations like append, insert, remove, pop, delete, and length.

  • 44 - Dictionaries5:37

    Python's dictionary type is a hashed key-value structure. Create dictionaries with curly braces or the constructor, access by key, and use items, keys, values, and get.

  • 45 - Sets2:31

    Learn how python sets store unique, unordered elements and support membership checks; perform difference, union, and exclusive or with -, |, and ^ operators, with optional sorting.

  • 46 - List comprehension4:31

    Explore list comprehension in Python by building lists from range, multiplying elements by two, filtering elements not divisible by three, and creating tuples, dictionaries, and sets.

  • 47 - Mixed structures3:18

    Explore how in Python everything is an object and variables store references, letting mixed structures like lists, tuples, sets, ranges, and dicts hold diverse data.

  • 48 - Creating a class2:35

    Define and instantiate a Python class, using self, indentation, and the dot operator to access object data and methods like quack, printing sound and movement.

  • 49 - Constructing an object5:03

    Learn how to create objects by calling a class as a function and how the constructor initializes attributes with self, type, name, and sound.

  • 50 - Class methods4:01

    Discover how class methods serve as the primary interface to objects, using a getter setter pattern with self, underscore private variables, and the __str__ special method to represent instances.

  • 51 - Object data4:56

    Learn the difference between class variables and object variables, and how encapsulation uses getters and setters with underscore conventions to protect object data in Python.

  • 52 - Inheritance4:26

    Explore class inheritance in python, where a base class provides properties and methods to derived classes via super. See duck and kitten subclasses, exception checks in setters/getters, and overriding str.

  • 53 - Iterator objects2:57

    Explore iterator objects in Python by building an inclusive range iterator, comparing it with the built-in range and generators, and understanding stop iteration and type errors.

  • 54 - Handling exceptions5:40

    Learn how exceptions report runtime errors in Python, inspect tracebacks, and use try and except blocks to catch value errors and continue execution.

  • 55 - Reporting errors2:09

    Use exceptions to report runtime errors by raising type errors for wrong argument counts and handling them with try/except to show clear error messages and tracebacks.

  • 56 - Overview of string objects2:59

    Explore how Python 3 treats strings as first-class objects, enabling methods on literals such as upper and swapcase, and supports formatting with placeholders across single, double, and triple quoted strings.

  • 57 - Common string methods4:15

    Explore common Python string methods, including upper, lower, capitalize, title case, swap case, and case fold. Learn about string immutability and concatenation, plus Unicode considerations like the German sharp s.

  • 58 - Formatting strings6:16

    Explore Python string formatting using the format method and f-strings, with placeholders, positional and named arguments, alignment, padding, signs, commas, bases, and decimal precision.

  • 59 - Splitting and joining2:37

    Split and join strings in Python using separators, showing default space folding and how to split on a character or join with a colon.

  • 60 - Opening files2:48

    Learn how to use python's open function to read files line by line, strip newline characters, and understand modes such as r, w, a, plus, and text or binary.

  • 61 - Text vs. binary mode1:45

    Explore how text and binary file modes handle diverse line endings across systems, including newline, line feed, and carriage return, and how Windows, Unix, and legacy platforms differ.

  • 62 - Text files3:55

    Learn to read and write text files in Python using open in read mode and text mode, strip line endings, and write with print or write_lines, then close the files.

  • 63 - Binary files3:36

    Copy a binary file by reading and writing in binary mode with a fixed-size buffer, using a loop that processes ten kilobytes per iteration to produce an identical output.

  • 64 - Numeric functions3:11

    Explore Python's numeric functions, including int and float constructors, abs, divmod, and complex numbers with the complex constructor using j notation.

  • 65 - String functions5:10

    Explore how the Python standard library's string oriented functions extend string behavior, including repr and representation, ASCII escaping, and ord/chr for Unicode characters.

  • 66 - Container functions4:41

    Explore container functions in the Python standard library by creating tuples, converting to lists, and using len, reversed, sum, max, min, any, all, zip, and enumerate.

  • 67 - Object and class functions1:51

    Explore Python built-in functions for classes and objects, including type, isinstance, and id, via a Hello.py example that inspects object identities.

  • 68 - Using standard modules5:59

    Import and use standard library modules to access platform info, environment variables, and the current working directory. Generate random numbers, shuffle lists, and inspect date and time with datetime.

  • 69 - Creating a module5:38

    Design a reusable Python module that prints the time in words, using a data-driven word dictionary and unit tests. Build inheritance-based classes to convert numbers to words and format times.

  • 70 - Python database API4:28

    Connect to a Python database with sqlite3 and the Python DB API, obtain a cursor, and execute SQL to create tables, insert rows, and query counts.

  • 71 - A database interface10:44

    Build a practical Python database interface using the sqlite3 module, featuring docstring-driven methods, property decorators for file handling, and CRUD operations with commit options, including an in-memory database for testing.

  • Wrap Up0:48

    Equip students with basics to write effective Python scripts, covering syntax, types, conditionals, loops, functions, generators, decorators, and the rich object model for reusable code.

Requirements

  • Before starting the course, learners should have Python installed on their computer. I may provide instructions on how to install Python, or participants can follow official Python documentation for installation.
  • A genuine interest in programming and a willingness to learn are crucial for a rewarding learning experience
  • Python is an accessible language, but curiosity and enthusiasm will drive learners to explore its capabilities fully.

Description

Python for Beginners: A Step-by-Step Journey into Programming

Are you ready to embark on an exciting adventure into the world of programming? Look no further! This comprehensive Python course is tailor-made for beginners, offering an immersive learning experience that will demystify coding and empower you to build your own Python projects from scratch.

Python—the popular and highly-readable object-oriented language—is both powerful and relatively easy to learn. Whether you're new to programming or an experienced developer, this course can help you get started with Python. This Python course provides an overview of the installation process, basic Python syntax, and an example of how to construct and run a simple Python program. Learn to work with dates and times, read and write files, and retrieve and parse HTML, JSON, and XML data from the web.

In this course, we will start with the basics, introducing you to the Python language and its vast capabilities. You'll gain a solid understanding of Python's simple and elegant syntax, perfect for those with little or no prior programming experience.

We'll dive into fundamental concepts, such as variables, data types, conditional statements, and loops, empowering you to write logical and efficient code. You'll learn how to control the flow of your programs, making decisions and executing repetitive tasks with ease.

Who this course is for:

  • Individuals with little to no prior programming experience who are eager to learn Python from scratch and embark on their programming journey.
  • Students or professionals from any field who want to add programming skills to their repertoire and leverage Python for various projects.
  • Students seeking to gain a solid foundation in programming and computer science concepts, with the goal of enhancing their academic performance and career prospects
  • Non-technical professionals looking to transition into tech-related roles, where Python is a widely-used and in-demand programming language
  • Individuals interested in web development who want to learn Python for back-end programming and Django, a popular Python web framework.
  • Aspiring data analysts, data scientists, or data engineers who wish to learn Python for data manipulation, analysis, and visualization using libraries like Pandas and NumPy.
  • Professionals working in business analysis who want to utilize Python to automate tasks, analyze data, and create insightful reports.
  • Students in scientific or engineering disciplines who want to use Python for numerical computations, simulations, and data analysis.
  • Individuals with a passion for technology and DIY projects who want to explore the world of programming and create interactive projects using Python.
  • Individuals who are simply curious about coding and want to explore the world of programming through a beginner-friendly and versatile language like Python.