
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn why Python is the go-to language for data science, machine learning, and deep learning, supported by vast libraries, dynamic typing, and developer-friendly design.
Learn python basics for machine learning and deep learning with no prerequisites. Follow a four-day roadmap through basics, data structures, object-oriented concepts, standard library tools, and date and time.
Learn how to set up Python for beginners, choosing between installing from scratch or installing Anaconda, with a recommendation to start with basic Python and how to verify the installation.
Explore how to write a hello world program in Python. Compare running it from the console, a notepad script, or Idle to understand Python's runtime and file execution.
Learn how to set up a python integrated development environment, compare visual studio code and Jupiter notebook/lab, install extensions, and run python in terminal for efficient development.
Explore variables as memory pointers that store data like numbers and strings. See how Python uses names to reference data in ram and how to check types with type().
Explore the three Python number types—integers, floats, and complex numbers—and learn how Python's dynamic typing lets integers grow without limit, while division may yield floats.
Explore strings, boolean variables, and variable naming conventions in Python, including valid identifiers and reserved keywords. Learn how to perform multiple assignments in a concise Python syntax.
Identify which values are floats or integers, evaluate valid and invalid variable names, and distinguish assignment from comparison in Python, including multiple assignments in a single line and simple expressions.
See how Python variables act as pointers to memory, and explore their types (integers, floats, booleans, strings, and complex numbers not used often), naming rules, reserved keywords, and multiple assignments.
Demonstrate swapping two variables using a temporary variable and explain how assignments and pointers affect which values variables reference, with stepwise guidance and multiple methods.
Explore type conversion in Python, contrasting implicit and explicit conversions with int, float, and string types, including input handling, concatenation, and avoiding data loss through proper casting.
Explore type conversion in Python by showing how input returns a string, when to cast to int or string, and how addition behaves across strings, integers, and floats.
Explore arithmetic operators and expressions in Python, including plus, minus, and multiplication operations, augmented assignments like plus equals, and division, floor division, modulo, and exponentiation with practical examples.
Explore Python comparison operators, including == and !=, and the modulus for odd/even checks, then apply them in if statements to classify numbers and teen ages.
Learn operator precedence in Python using the BMI example, showing why height squared is computed before division. Apply parentheses to force explicit evaluation order and avoid ambiguous expressions.
Explore how logical operators in Python combine expressions with and, or, and not; learn to define ranges like ages 13 to 19 and chain conditions to evaluate true or false.
Learn how if statements control program flow in Python, with an elevator example and indentation rules, covering true/false conditions and basic conditional logic.
Explore how indentation determines blocks in Python, how if statements and print statements execute based on conditions, and why Python enforces indentation for readability.
Explore nested if statements and nesting by building a simple elevator program. Execute actions only when not in emergency, using multiple indentation levels and if blocks.
Learn how the Python elif statement acts as an else-if, and how it differs from separate if blocks. Practice debugging with Visual Studio Code using breakpoints and step-by-step execution.
Learn how the else statement acts as the default block after if and elif, handling greater than zero, less than zero, or equal to zero, with an elevator example.
Learn Python flow control by evaluating if statements, ensuring colon and indentation. Use age-based conditions to print can walk or go watch cartoons.
Practice Python flow control by classifying a number as positive, negative, or zero, then determine the oldest of three students using nested if statements and a decision tree.
Discover how the built-in range function generates a sequence of numbers and how a for loop iterates a range object from 0 to 9, printing each value.
Master the Python while loop, its syntax and indentation, and see how it repeats a block until a condition is false using an elevator simulation and break to avoid loops.
Learn to print odd numbers with a for loop and range in Python, using modulo division, and master indentation and nesting for if statements and loops.
Explore Python basics by reversing number sequences, mastering range usage, and printing the Fibonacci series, with for and while loop implementations and debugging tips.
in python for beginners, learn to print multiples of five from 1 to 100 using a for loop and the modulo operator %, printing numbers with remainder zero.
Explore the differences between for loops and while loops in Python, including range-based iteration, automatic stepping, and when to apply each to break conditions.
Understand how break statement exits loops by using a direct condition instead of a flag. Compare while loops to for loops with range when finding tenth number in a sequence.
Learn how to use a Python for loop to test odd numbers with modulo two, and apply the break statement to exit the loop when a condition is met.
Explore Python's for-else syntax, comparing flag-based prime checks with the loop-else approach; learn how break versus exhaustion differentiates outcomes in a range like 2 to 101.
Demonstrate nested loops using an outer for loop with range and an inner loop to print numbers 1 to 10, each repeated as many times as its value.
Define strings in Python using single or double quotes, and learn escaping quotes with a backslash. Index strings with zero-based positions via square brackets to access characters.
Discover how to work with substrings in Python by using the find method on a string object to locate a substring’s index, and explore string methods including length and concatenation.
Split strings using the built-in split function with the default space delimiter, and customize it by providing a delimiter such as a comma for parsing names or sentences.
Learn how Python's strip function removes leading and trailing spaces. Understand why strings are immutable and how assigning the result back updates variables.
Explore enforcing user id constraints with alphanumeric checks using isalnum and isalpha, practice concatenation with plus, and master string formatting with upper, lower, title, swapcase, isupper, islower, and capitalize.
This cheatsheet covers creating strings with single or double quotes and escaping, indexing, immutability, and key string methods like find, split, ends with, upper, capitalize, and join.
Explore practical string challenges in Python, including reversing strings with loops, using length and split, and counting character occurrences, while applying upper and capitalize methods.
Explore how functions in Python operate as self-contained units, using input and len, and learn how teams use APIs to interface with these functions in real projects.
Explore user defined functions in Python, define with def, supply input parameters like balance, interest rate, and days, and return the computed interest.
Explore how docstrings provide quick in-function documentation for Python functions. Describe input parameters like balance, interest, and days, enabling users to call calculate_interest confidently.
Explore how Python functions use required and default arguments, positional order, and variable numbers of parameters, with practical examples from print and calculating averages in data science.
Define and call user defined functions with def, return values, and a docstring; pass positional or named arguments, use defaults, and handle variable arguments, including print separators.
Explore commonly used Python built-in functions such as len, min, max, abs, and range, and learn type conversion with int, float, str, and complex, plus input handling.
Explore Python’s built-in functions, including length (len), absolute value (abs), min and max, type conversions, and input, with practical tips for using them in data science tasks.
Explore using Python lists to store a sequence of grades, building an empty list, appending user-entered grades, iterating with a for loop, and computing the average with sum and len.
Count vowels in a user-entered sentence by converting the string to a list, initializing a vowels list, and checking each letter with the in keyword to tally wobbles.
Learn to merge two lists using extend and access list elements with positive and negative indexing, including retrieving from the end and locating the third from the end.
Learn how to manipulate lists in Python by inserting, changing, removing by index or by value, popping elements, and clearing the entire list with practical examples.
Build a Python program to manage grades with list operations like append and clear, validate inputs, compute the average, and run a menu loop with enter, delete, update, and clear.
Explore a Python program that lets users enter, list, delete, and update grades stored in a list, with index-based operations and basic input validation.
Develop a Python menu-driven program to manage grades, using options like clear (five) and calculate average. It sums grades and divides by their count to yield a floating-point average.
Explore nested lists and mixed data types in Python, including integers, floats, strings, and elements, demonstrated through a person example and multi-level list structures.
Discover how Python's enumerate provides index and value when looping over lists, turning a list into an enumerated object and enabling tasks like skipping every third item.
Merge and sort lists to merge data from multiple sources, such as temperature readings from city 1 and city 2, using the plus operator and the sort function.
Learn to slice lists in Python by using the slice operator to pick ranges from index three to five and from start to end, with end-exclusive behavior.
Discover Python dictionaries, a hash-table-like data structure of unique key-value pairs defined with curly braces, accessed by keys, updated by assignment, and capable of adding new keys.
Explain the get method for dictionaries, compare it with square bracket indexing, and show that get returns None for missing keys without raising errors, while indexing raises errors.
Explore a Python technique to count vowel occurrences in a user input sentence by iterating characters and tallying each vowel with a dictionary.
Learn how the dictionary get method retrieves values safely: it returns the value when a key exists and none when it does not, unlike square-bracket indexing that raises errors.
Discover how dictionaries use a hash-based structure with no inherent order, access values by keys, and iterate via the keys view while noting the dynamic key and value views.
Create a dictionary that maps each vowel to the words containing it in a sentence, using split, nested loops, and list appends.
Split the sentence into words, count the length of each unique word, and use lists and dictionaries to map words to frequencies and sort them by decreasing occurrence.
Learn to read input and split it into words, count word occurrences into a dictionary, and sort a list of word-count pairs by the second element using Python.
Learn how to merge dictionaries and override values when keys collide. Practice deleting specific key-value pairs with del and pop, handle missing keys, and clear dictionaries.
Explore Python tuples, immutable counterparts to lists, and learn indexing, slicing, and how to convert lists to tuples with the tuple() function, plus when inner mutable elements allow changes.
Explore why tuples, as immutable alternatives to lists, enable faster iteration and consistent constants, and apply tuple methods like count, index, length, min, max, sum, and filter to process data.
Learn how Python sets represent unique elements with no duplicates or ordering and support operations such as union, intersection, and difference, plus creation, addition, removal, and handling of empty sets.
Explore core set operations in Python, including union, intersection, difference, and symmetric difference, with examples and operator symbols like |, &, and - to manage unique elements.
Master checking element existence with the in operator in Python sets, and compare remove versus discard for safe element deletion without errors.
Understand how Python sets keep unique, unordered elements and empty set via set(), distinguish from dictionaries, and perform add, remove, discard, clear, membership tests, union, intersection, difference, and symmetric difference.
Explore object oriented Python by defining classes that encapsulate data and methods, illustrated with a business card and bank account example to support machine learning workflows.
Presents a python class as a blueprint for accounts, explains initializing with __init__, and contrasts instance variables like account number with a class variable like percentage using objects.
Explore variables and methods in a Python class by modeling accounts with self and instance variables, and using account_type and interest_rate to differentiate savings, current, and brokerage rates.
Learn input and output in Python by using input and print functions, convert inputs to strings or numbers, and define meaningful string representations for objects via the SDR function.
Learn how to format strings in Python using the format function, with positional and keyword substitutions, and apply indentation and comma formatting to make numbers readable.
Learn how to handle Python exceptions with try-except blocks, catching errors like zero division and syntax errors, and use finally for cleanup when opening and closing files.
Explore Python's standard library date and time tools, create date objects with year, month, day or today(), modify them with replace, extract weekday, and format dates for data analysis.
Participate in a quiz discussion on Python date and percentage formatting, using today and yesterday, month abbreviations, four- and two-digit years, and executing code to identify correct answers.
Learn how time delta computes the difference between date objects and adds days or weeks, with practical data analysis use in sales and insurance policy dates.
Explore how time objects relate to date objects, extracting hour, minute, second, and microsecond, and formatting times; contrast absolute epoch time since 1970 with time elapsed since an event.
Explore the date time module as a union of date and time objects, enabling attribute extraction, timedelta operations, and parsing and formatting with strptime and strftime.
Discover how to read and write files in Python with the open function, covering text and binary files, reading lines, and understanding file pointers.
Learn to read text and binary files, and to write and append data while preserving existing content and closing file pointers with proper exception handling.
Master exception handling in file operations by using try, except, and finally to close files, and leverage with statements for automatic resource management in Python.
Explore the Python math module, mastering floor, ceil, trunc, exponential, power, sqrt, log, plus pi, e, radians, fsum, gcd, and factorial for precise calculations.
Data Science, Machine Learning, Deep Learning & AI are hot areas right now. But to learn these, for some of us programming is a bit of a problem. Not all of us are from a programming background. Or some come from a Java background and might not know Python.
These days, Python is the de-facto ( almost ) programming language for Data Science. So, to fill that gap, we have created a course that covers just enough Python for you to start up and running with any of you the Machine learning algorithms you are interested in.
Python Programming -
Python programming is one of the core skills required for any Data Scientist. However, not all wanna-be data scientists have the required programming background let alone Python skills. This Python online training program is designed to let you start all the way from the basics. It teaches you the basic skills in python. Here are some of the topics we will discuss in the course. You don't have to understand these topics just yet. The listing is to just give a good inventory of the topics that we will be covering in this Python course.
variables, type conversions, flow control, operators & Expressions.
Loops - for & while loops , nested loops, for else loops
Strings, built-in and user defined functions
Data Structures - Lists, Dictionaries, Tuples, Sets
Object Oriented Python
I/O, exceptions
Standard library - date/time, file I/O, math, statistics & random numbers.
For any data scientist, these are the absolute essentials of python.
What about Data Science & Machine Learning ?
This course does NOT teach you data science or machine learning. Python is a broad purpose programming langauge. It can be used for a variety of purposes like building websites, process automation, devops, Data science etc. However, this Python programming course is designed specifically to cater to the needs of the Machine Learning or Data Science learner. By the end of this course, you will be in a good position to apply your python skills to apply to any of the Machine Learning or Data Science algorithms in Python.
Who this course is not for ?
Although most newbies or experienced folks will benefit from this course, it is not suitable for
those experienced in Python already.
those who already have some Python programming experience, but wish to learn more about its application in Data Science or Machine learning.
Free Preview
We have deliberately kept quite a number of videos for free preview. Hopefully, this will enable you to judge our Python Programming course before you take it. Either way, Udemy's 30 day return program will hopefully help you with a refund in case you don't like the course. However, we are absolutely positive you will like the course.