Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to Programming Using Python
Rating: 3.7 out of 5(2 ratings)
9 students

Introduction to Programming Using Python

Programming at its best
Last updated 4/2023
English
English

What you'll learn

  • Understand the basic concepts of programming and the Python programming language
  • Write and execute Python programs using variables, data types, and control structures
  • Create and use functions to perform specific tasks
  • Understand and use Python modules to extend functionality
  • Read and write files in Python
  • Use Python libraries such as NumPy and Pandas for data analysis
  • Debug and troubleshoot common errors in Python programs
  • Apply programming concepts to solve real-world problems

Course content

1 section26 lectures9h 41m total length
  • Overview4:12

    Explore the basics of Python programming with hands-on labs, IDLE practice, and step-by-step guides covering variables, data types, lists, control flow, loops, and exam preparation for the MTA 98-381.

  • Working with Primitive Data Types26:47

    Learn how to work with primitive data types in Python, including booleans, strings, integers, and floats, using variables, assignment, and printing in IDLE.

  • Working with Multiple Assignment Statements22:29

    Learn to use multiple assignment statements in Python to assign the same value to many variables or map corresponding values in one line, improving readability and consistency.

  • Converting Types in Python30:16

    Learn to convert between string, integer, float, and boolean types in Python, inspect types with type(), and avoid unsafe eval with secure, reliable casting.

  • Creating Lists24:24

    Create and manipulate lists in Python using list literals, index access, and len to measure length; convert strings to lists and keep elements homogeneous for clarity.

  • Modifying Lists18:39

    Explore modifying lists in Python by appending elements, deleting by index, popping from the end, and updating specific positions to mutate list data.

  • Sorting and Reversing Lists22:28

    Learn to sort and reverse lists in Python with sorted, sort, and reverse, and understand in-place mutation versus new copies, plus ascending and descending options.

  • Slicing Lists18:04

    Explore Python list slicing to select ranges and create shallow copies without mutating original. Learn start, end, and step, inclusive/exclusive boundaries, and how to reverse or take every other element.

  • Working with Operators29:11

    Explore how Python uses operators for mathematical and comparison tasks, including plus, minus, multiply, divide, modulo, power, floor division, and string concatenation, with boolean results from comparisons.

  • Determining Operator Precedence23:27

    Explore Python operator precedence, including in, not, and is tests, the order of operations, and how identity versus membership affect expressions.

  • Working with If Statements20:26

    Explore how if statements drive dynamic Python programs, using else and elif for mutually exclusive paths, with booleans, indentation rules, and practical examples like Brussels sprouts and a number-guess game.

  • Using Compound Conditional Expressions25:16

    Discover how to use compound conditional expressions in Python, mastering and, or, exclusive or, and operator precedence to write clear, maintainable logic with if and elif statements.

  • Working with For Loops24:22

    Understand Python for loops through iterating over lists, using range for counts, and enumerate for index and value, then apply input and break to build a guessing game.

  • Working with While Loops19:29

    Explore how to use while loops in Python, compare them with for loops, and build practical examples such as iterating over a string, a game loop, and handling break conditions.

  • Nesting For Loops19:47

    Explore nesting for loops in Python by combining numbers and letters with zip, and illustrate runtime behavior and iteration counts with practical examples.

  • Reading Files21:41

    Learn to read files in Python using relative paths, open and close operations, read and readlines, and iterating lines with for loops, plus safe context managers.

  • Copying Files17:05

    Copy files in Python by reading from a source and writing to a destination, exploring write and append modes, clobbering versus appending, and line-by-line copying.

  • Merging Mails18:09

    Learn to automate mail merges with Python by reading a message template and a winners list, then generate personalized letters as separate txt files for each winner.

  • Reading Console Inputs and Formatting Outputs27:43

    Explore reading console inputs and formatting outputs in Python by building a grocery calculator that prompts for foods and quantities, computes totals, and uses loops and string formatting.

  • Reading Command Line Arguments23:50

    Explore how to build a Python command line interface that reads arguments with sys.argv, converts them to int and float, formats a purchase total, and handles basic interface design.

  • Defining Functions23:33

    Learn how to define and use functions in Python, covering naming, parameters, positional arguments, local scope, and the main guard, with a practical eat function demonstration.

  • Using Default Arguments13:05

    Explore default arguments in Python, using None as a default value to handle missing inputs, and see how food and happy parameters illustrate positional versus keyword arguments for flexible functions.

  • Using Keyword and Positional Arguments25:37

    Learn to use positional and keyword arguments in Python, including *args and **kwargs, with examples showing how to enforce keyword-only calls and avoid ambiguity in function calls.

  • Handling Exceptions24:21

    Learn to handle exceptions in Python by catching specific errors such as ZeroDivisionError and NameError, logging incidents, and using finally for cleanup, while avoiding swallowing errors.

  • Using Math and Random Modules26:58

    Explore how to import and use Python's math and random modules, including ceil, fsum, randint, and choice, with notes on non-cryptographically secure randomness and best import practices.

  • Display Datetime Working Directory File Metadata29:41

    Explore how to display datetime, working directory, and file metadata using Python's os and datetime modules, including os.getcwd, os.listdir, os.stat, and path handling.

Requirements

  • This course assumes no prior knowledge of programming and is designed to provide a solid foundation in Python programming. However, it can also be useful for those who have some programming experience in other languages and want to learn Python as well.

Description

The Introduction to Programming Using Python course is designed to provide beginners with a comprehensive understanding of Python programming. This hands-on course focuses on core programming concepts and empowers learners to write functional Python code for a variety of applications. Starting with the basics, participants will learn how to work with primitive data types, perform type conversions, and understand Python’s powerful assignment operations.

The course delves into lists, teaching learners how to create, modify, sort, reverse, and slice lists effectively. Additionally, participants will gain a solid grasp of operators, operator precedence, and conditional statements, including working with compound conditionals using if statements. Understanding loops, such as for and while loops, will be essential for automating repetitive tasks, and learners will explore how to nest loops to solve more complex problems.

A key aspect of the course is file handling. Participants will learn how to read and write files, copy them, and even merge emails using Python. Input and output handling is also covered, enabling learners to interact with users via the console and format outputs as needed.

The course further explores defining and calling functions, using default, keyword, and positional arguments, and handling exceptions to make code more resilient. Learners will also discover how to use Python’s math and random modules, as well as how to display the current date, time, and file metadata.

By the end of the course, learners will be ready to develop basic Python applications and tackle programming challenges with confidence.

This course is ideal for beginners in programming and those seeking to gain practical skills in Python for various applications, including data analysis, web development, and automation.

Who this course is for:

  • Students who are new to programming and want to learn the fundamentals of programming using Python.
  • Professionals who want to add programming skills to their toolkit and improve their job prospects.
  • Hobbyists who want to learn to code for fun and create projects using Python.
  • Anyone who wants to learn to code and understands the importance of Python as a versatile and powerful programming language.