Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Programming Basic
Rating: 4.2 out of 5(122 ratings)
10,462 students

Python Programming Basic

Quickly learn Python and Up your career
Created byShakil khan
Last updated 7/2022
English
English [Auto],

What you'll learn

  • Learn to program in Python language. Start a career in python related technology

Course content

1 section53 lectures7h 18m total length
  • Introduction9:29

    Learn Python as an interpreted, platform-independent language for text parsing, error handling, data handling, and automation. Explore web development with Django, AI and NLP, and choosing between 2.7 and 3.x.

  • Python Installation5:40

    Learn to set up a Python development environment across Windows and Ubuntu, install Python 2.7 or 3.x with apt-get or yum, and manage packages with pip and vim.

  • Typical structure of a python program9:36

    Explore the typical structure of a Python program, including shebang and interpreter location, executing scripts, defining functions and classes with indentation, using pass for empties, and handling strings and literals.

  • String Manipulation Part 112:58

    Explore string manipulation in Python by accessing characters via indexing, measuring length, converting case, splitting, replacing, and concatenating strings, with examples of docstrings and quotes.

  • String Manipulation Part 27:43

    Master Python string manipulation by comparing Python 3 formatting with C style placeholders and using formatted strings for output. Explore split and access help for the string class.

  • slicing for string, list6:26

    Explore string slicing and list slicing in Python by selecting subparts with start and end indices, understanding non-inclusive ends, steps, and negative indices, which also apply to tuples.

  • List Part 19:47
  • List Part 28:33

    Explore Python lists by slicing, extending, inserting, removing, and popping elements; learn indexing, finding indices, and counting items in a heterogeneous list.

  • List Part 37:00

    Explore Python lists, sort with sorted, find min and max, sum elements, handle string lists, enumerate indices, and join list items into a single string.

  • List Part 43:18

    Learn how Python list methods can modify the original list in place, including sorting with an optional reverse flag and printing elements in reverse order.

  • Tuple explanation6:07

    Learn that Python tuples are immutable and cannot be modified in place; convert a tuple to a list to add elements, then convert back, using list methods for operations.

  • set7:58

    Explore how Python sets differ from dictionaries, storing unique keys without values, using hash maps, and offering fast membership checks, unions, intersections, and differences.

  • Dictionary lecture 16:46

    Explore Python dictionaries, learn about keys and values. Use methods like keys, values, and items to understand hash-based uniqueness and iteration.

  • Dictionary Lecture 27:45

    Explore dictionary operations in Python by safely accessing keys with get to return None or a default, check key existence, and update or add items, overwriting existing keys when needed.

  • Dictionary Lecture 35:15

    Explore Python dictionaries by creating a booklist, iterating over keys and values, accessing items, and deleting or popping entries using keys in a hash-based structure.

  • How to write Module Part 15:05

    Learn how to create and import Python modules, including omitting extensions, and explore modules such as time and os. Write a simple module and import it to run its functions.

  • How to write Module Part 25:17

    Discover how to create reusable functions and organize them into modules, then import and call those functions across files, test them, and name models for easy distribution.

  • How to write Module Part 39:13

    Explore how to import from Python modules, using specific imports or import everything, and understand namespace behavior, followed by an example with a dog class showing constructors and methods.

  • How to write Module Part 42:56

    Learn how to import a dog model from a different directory, test your program, and resolve module path issues by importing the correct model in Python programming basics.

  • raw input and __main__7:13

    Explore Python syntax for raw input versus input, convert strings to integers, and perform addition, then learn to use the if __name__ == '__main__' guard to control module execution.

  • *args and **kwargs7:52

    Explore how Python functions handle arguments, including global variables, default arguments, and local versus global scope, with practical examples of def, print, and lists.

  • *args and **kwargs Part 28:09

    Learn to design functions that accept a variable number of arguments in Python using *args and **kwargs, including the star notation, iterating over arguments, and handling dictionary key-value pairs.

  • *args and **kwargs Part 36:11

    Explore how Python handles variable argument lists using *args and **kwargs, showing positional, keyword, and dictionary unpacking, and the importance of argument order.

  • File reading Part 110:01

    Open files in Python, read line by line or the entire contents with a file handle, then use strip to remove newlines and whitespace.

  • File reading Part 25:30

    Learn to read files in Python with exception handling, safely open files, read lines, and collect lines starting with from into a list of emails.

  • Oops and classes12:32

    Learn how classes group data and methods into encapsulated objects in Python, using self, constructors, and the distinction between instance and class variables.

  • Oops and Classes Part 25:31

    Explore Python classes by extending examples, comparing instance and class methods, constructors, and class variables, and observing how self versus class names affect attributes and behavior.

  • Override class methods like str, len, repr13:12

    Learn how to override class methods like __str__, __len__, and __repr__ in Python by implementing a simple class with a constructor, custom length logic, and a tailored string representation.

  • dir, type, id methods in python and their use case14:36

    Explore python's dir, id, and type utilities to inspect object methods, compare identities, and determine object types, with examples on strings, lists, and custom classes for debugging and parsing.

  • String Slicing Practice Question5:35

    Explore string immutability in Python by practicing string slicing and constructing a new string to replace a character at a given index, via a function definition.

  • String Slicing answer 17:08

    Learn how to replace a character in a string using slicing and a replacement character, creating a new string since strings are immutable, with 0-based indices.

  • String Slicing answer 22:48

    Learn how strings are immutable and how to modify by creating new strings, using string methods like replace and find, and exploring built-in string functions.

  • Exception Handling in python14:51

    Learn to handle runtime errors in Python using try/except blocks. Explore finally, specific exceptions like zero division error, and optional raising of user defined exceptions.

  • Function performance with timeit and time part 16:29

    Learn how to measure a function's performance in Python using timeit and the time module, compare Linux time command outputs, and understand real, user, and system times.

  • Function performance using perf_counter and process_time part 213:28

    Compare python performance with perf_counter, process_time, and time.time to measure code sections, noting perf_counter includes sleep while process_time excludes it; choose based on context for accurate timing.

  • Ping project question4:37

    Write a small python utility that pings a subnet range to identify alive hosts, using os.system and the system ping command with a configurable start and end.

  • Ping test Solution6:09

    Learners will implement a Python ping test solution that builds IP addresses from a subnet, pings each host with a single packet, and returns the alive hosts as a list.

  • Swap variable7:01

    Learn how Python swaps variables and uses packing and unpacking of tuples with multiple assignment, and compare its behavior to C’s swapping approach.

  • Whois Mini project question5:31

    Write a Python program using the python whois library to fetch domain details like creation and expiry dates, with exception handling and practical command-line demonstrations.

  • Whois Mini project solution11:16

    Develop a Python whois mini project solution by importing the whois module, querying multiple domains from a host list, printing creation and expiration dates, and using try-except to handle errors.

  • List comprehensions Part 18:25

    Explore list comprehensions in Python by creating a list from an existing list, using syntax like [item*item for item in L], with optional conditions and memory-efficient generators.

  • List comprehensions part 26:36

    Learn how to generate two-dimensional point pairs from x and y coordinate lists using list comprehension, compare with plain loops, and apply simple conditions.

  • Dictionary comprehension and zip with dict comprehension4:39

    Explore dictionary comprehension and zip with dict comprehension, building key-value pairs from countries and capitals while applying conditions; recap list comprehension and using zip to pair items.

  • Set comprehensions and various operations on set12:19

    Explore Python sets, their uniqueness and hash-based behavior, compare them with dictionaries, create and modify sets, use set comprehension, and perform union, intersection, difference, and symmetric difference operations.

  • zip utility for parallel iteration8:12

    Learn how to use Python's zip utility for parallel iterations across lists, creating paired tuples. Discover zip longest, handle unequal lengths with fill values, and extract elements by index.

  • Create my own zip utility using list, tuple loop13:34

    Learn to implement a custom Python zip utility that pairs two lists by iterating the shortest length, then extend to multiple lists using *args and tuples.

  • Generators and iterators part 116:50

    Explore iterables, iterators, and generators in Python, learn how yield produces on the fly values, use next or for loops to iterate, and avoid loading large lists with StopIteration handling.

  • Generators and iterators part 23:39

    Explore how Python generators and the next function operate inside and outside loops, producing values raised to the power of three and handling stop iteration with for loops.

  • Generators and iterators part 38:53

    This lecture explains generator and iterator concepts, shows using next on generators and iterables, and converting a list to an iterator with iter(), plus iterating with for or while loops.

  • Implementing __next__ for custom iterator class10:23

    Implement __next__ in a custom iterator class to enable for-loop iteration, with StopIteration control, using examples like a range-style counter and a multiplication table.

  • Generator performance with memory profiler and psutil11:26

    Compare memory usage between lists and generators using memory profiler and psutil, showing that iterators consume far less memory when processing large data sets.

  • map, filter, reduce, lambda demo13:21

    Explore map, filter, reduce, and lambda in Python by doubling a list, filtering numbers divisible by three, and summing with reduce, using lambda expressions for concise one-line functions.

  • map, filter, reduce, lambda problem and solution7:31

    Learn to convert degree to radian with map and lambda, filter obtuse angles, and reduce to a sum using Python, with practical demonstrations and key concepts.

Requirements

  • Python beginner course is for student who are familiar with Computer operation and at least one previous programming language knowledge is desirable

Description

The course demonstrates small set of independent program to demo a feature and later I stitch together concepts learnt to create medium complexity project.

The course is from beginner level but the student needs to have idea or familiarity with at-least one programming language.

Detailed understanding of the Python Language.

Detailed tutorial and internals of List, Dictionary, Sets, Tuples.

Detailed File Handling like reading/writing/opening. Several mini Project on Python.

Installation and development guide on Python.String Manipulation.

Detailed description and handling of Functions. Detailed description of Python Modules and how to write modules of your own.

Periodic updates on python news and new development. Future updates with lots of stuff like web scraping, youtube downloading and other stuff.

Operating system interfacing modules like OS and os.path

Demonstration of post, get for the rest client handling.

Writing Rest API backend with the Python.

Demo of the project in python for checking if the system is alive using the ping utility from within python program.

Demo of the project using the argparse, IPNetwork, netaddr, threads to do ping discovery for alive system.

Small Demo of the flask, although flask will not be covered extensively as its not a flask course.

This would be a dynamic and ever evolving course on python and new stuff will be posted very periodically.

I am planning to later cover the stock API and stock data fetch particularly from the polygon dot io for those who are interested, although this is currently not part of the program and will be added later.



Who this course is for:

  • Data Scientist, Students, Web Developers