
Learn to use Python's built-in len function to print the length of a string, counting letters, spaces, and characters, with examples from empty strings to hello and beyond.
Learn to print the character at a specific index in Python, handle empty strings and out-of-range errors with length checks and truthy-falsy conditions.
Master Python string reversal using three methods: slice with a -1 step, assign the slice to a variable, or reverse with reversed and join, with practical test cases.
Write a Python solution that concatenates the first and last three characters of a string using slicing, returning an empty string if the length is less than six.
Learn to write a Python program that prints true or false for strings that contain only numbers. Use the isdecimal method to verify decimal strings, with empty strings returning false.
Learn to replace a character in a Python string with a for loop and a conditional, and with the built-in replace method, using hello and world examples.
Learn how to swap commas for dots in a Python string using two approaches: character iteration with a for loop and the built-in replace method, including constant definitions and tests.
Determine if a string is a pangram in Python by comparing a lowercase character set to the alphabet. Explore three methods: set approach, loop check, and break-optimized loop.
Learn to remove spaces from a string in Python by iterating over characters to build a new string, or by using replace, with tests showing outputs.
Learn to check if a string starts with a prefix in Python, using slicing and the startswith method, with attention to case sensitivity and prefix length.
Learn to determine if a string ends with a given suffix using Python, either by slicing or by the endswith method, with attention to case sensitivity.
Solve a coding challenge by reversing each word and swapping letter cases, using split, iterating over words, reversing characters, and joining results to preserve spacing.
Demonstrate three Python approaches to count and print repeated characters in a string, printing the distinct repeated letters in alphabetical order and showing none when no repeats.
Sorts the letters of each word in a string alphabetically with Python by splitting, lowering case, joining, and trimming spaces, showcasing a two-step and a concise one-line solution.
Multiply each element in a list by a factor using a for loop with range(len(list)), then demonstrate an alternative with enumerate to update elements by index and print final list.
Learn two Python techniques to print list elements on one line with a space after each element, without brackets or commas: use a for loop or unpacking with an asterisk.
Learn to find max and min values in a list with Python's max and min functions, handle empty lists by printing none, and display max then min.
Learn two Python approaches to check if a list is empty: compare length to zero or use the list directly with truthy values, printing empty or not empty.
Learn how to print list elements with their indices using a for loop, including handling an empty list and using enumerate for clean indexing with an optional start value.
Learn to remove all occurrences of a given element from a list in Python using count and repeated remove calls, with checks for an empty list and not found cases.
Remove duplicates from a Python list using a set, then convert to a list. Use dict.fromkeys to preserve the original order.
Count elements greater than three in a Python list with a for loop, or use a one-line sum and generator for a concise alternative.
Create an empty intersection set, loop over elements to add those found in both sets, or use the built-in set method intersection for concise results.
Learn to compute the difference between two lists in Python by iterating over list a with a for loop and appending elements not in list b, then printing the result.
Compute the distance between two 3D points in Python using either pure operators or the math module, with points as [x, y, z] and a clear implementation.
Learn to compute the intersection of two lists by iterating over list a, testing membership in list b using the in operator, then printing the result.
Explore two Python methods to find the second largest value in a list: use sorted with negative indices, or convert to a set and remove the maximum.
Discover how to find the second smallest value in a Python list using both sorted and set approaches, printing None for lists with fewer than two elements.
Learn to build a frequency dictionary from a list by iterating with a for loop, initializing unseen elements to 1 and incrementing existing counts, including case sensitivity.
Learn to flatten a list with nested lists using Python. The lesson shows type checks, iterating nested lists, and appending elements to build the flattened result.
Generate all permutations of a Python list using itertools.permutations, convert to a list, and print each permutation in a for loop, showing six permutations for a three element list.
Learn to check if a key exists in a Python dictionary using the in operator. See true or false results for keys A, B, C and D.
Learn to add a key-value pair to a Python dictionary only if the key is not present, using not in, with the January, February, and March, and adding April.
Merge two dictionaries in python using the vertical bar operator, preserving the second dictionary's value when keys collide. The final dictionary includes A:1, B:2, C:4, D:6, and E:8.
Learn to check if all dictionary values are equal in Python by converting values to a set, then using length to print true, false, or empty dictionary.
Learn to find the maximum value in a dictionary by extracting values, converting to a set to remove duplicates, and applying max, with guidance on empty dictionaries.
Solve a Python challenge to find the minimum value in a dictionary using the values method, deduplicate with a set, and apply min, printing None for an empty dictionary.
Write Python program that takes a dictionary and builds a frequency dictionary by counting how often each value appears. Use a for loop to increment frequencies as values are seen.
Write a Python program that converts a list of nested lists into a dictionary by mapping each nested list's first element to its second element using a for loop.
Learn to find the maximum sum among lists stored as dictionary values in Python by iterating over dict.values(), using sum(), and updating a max variable, then printing the result.
Write a Python program that builds a frequency dictionary of letters from a string, ignoring non-letter characters, and counting case-insensitively by converting to lowercase.
Learn when to use the list sort method versus the sorted function, mutating in place or returning copies, then sort all dictionary value lists in ascending order with a loop.
Transform a dictionary into a list of nested lists by iterating with for loops and using dict.items, then append and print the resulting structure.
Learn to write a Python program that prints zero, positive, or negative using conditionals on a Num variable, with if, elif, and else branches.
Write a Python program that checks each character in a string to classify vowels, consonants, not a letter, or an empty string using conditionals, a for loop, lowercasing, and f-strings.
Learn to print the maximum of three values A, B, and C using conditionals or the max function, handling equal values and readability with optional parentheses.
Learn to compute the minimum of three numbers using if/elif/else conditionals for A, B, and C, and then use the built-in min function, including negatives and equal values.
Use conditionals to map season_num (1–4) to spring, summer, fall, or winter, with an else for invalid input; print 'please enter a valid number' and test different values.
Write a Python program that compares three numbers A, B, and C, printing equal when all equal and not equal otherwise, using comparison chaining for readability.
Learn to write a Python program that prints a month's days by classifying months into 31-day and 30-day groups using immutable tuples, with February having 28 days and using f-strings.
Practice a Python exercise that checks whether A, B, and C are in decreasing or increasing order using a conditional, chained comparisons, and print none when not ordered.
Solve quadratic equations in Python by computing the discriminant with the math module, then print one or two real roots or complex roots depending on the case.
Explore how to determine a leap year in python using nested conditionals and three approaches based on divisibility by four, 100, and 400, highlighting readability and the preferred if-elif-else style.
Learn to build an interactive Python calculator that prompts for two values, shows a menu of operations (add, subtract, multiply, divide, integer divide, modulo), and displays the result.
Implement a Python rock, paper, scissors game using the random module to choose the computer's move. Normalize user input, apply if-else rules, and print win, lose, or invalid outcomes.
Learn to print the first 15 positive integers in Python using a for loop and range. Explore start and stop parameters and printing each number on its own line.
Learn to write a Python program that reads n, casts it to int, and prints numbers from n down to 1 using range with a minus one step.
Solve the sum of the first 100 positive integers by using a for loop with range(1,101), accumulate in a total variable (avoiding the built-in sum), then print the result 5050.
Learn to print a Python multiplication table using int input, f-strings, and a 1 to 10 for loop to produce lines like n times i = result.
Write a Python program that prints the alphabet in uppercase using a loop. Use chr and Unicode codes 65–90 to generate and print each letter.
Discover two Python approaches to print the first 100 even numbers from 2 to 200 using range with start, stop, and step, or range with two arguments and modulo filtering.
Implement a python factorial program using a for loop and user input for n. Initialize factorial to 1 and multiply by i from 2 to n to compute n factorial.
If you are learning Python and you want to take your Python skills to the next level with intensive practice, then this course is for you. Apply your knowledge to solve more than 100 Python exercises and check your solutions with step-by-step video lectures with visual effects and diagrams.
Solve 100+ Exercises to Take Your Python Skills to the Next Level.
Solve more than 100 exercises and improve your problem-solving and coding skills.
Learn new Python tools such as built-in functions and modules.
Apply your knowledge of Python to solve practical coding challenges.
Understand how the code works line by line behind the scenes.
Identify different ways to solve a problem and which one is more concise and efficient.
Test your code with different values and inputs to verify its correctness.
Gain practical and valuable coding skills.
Course Updates
The course is updated with new exercises and resources:
August 2022 - NEW Updated Section 1
November 2021 - NEW Exercise: Find the Intersection of Two Sets
November 2021 - NEW Exercise: Balanced Square Brackets
Improve your Python Skills and Gain Valuable Practical Experience
Python is currently one of the most popular programming languages and its popularity continues to rise every year. It is used for real-world applications in diverse areas such as Web Development, Data Science, Machine Learning, Artificial Intelligence and many more. Learning Python is your next step into the powerful world of computer science. Through practice, you can improve your coding and problem-solving skills. You will also learn new tools that you can use in Python.
Your knowledge of Python will be extremely helpful in any field, including:
Web Development
Machine Learning
Data Science
Artificial Intelligence
Game Development
Mobile App Development
Bioinformatics
Medical Software
Computer Vision
and... many more!
Coding skills are essential to succeed in the world of the future. Therefore, if you are thinking about entering any of these fields or if you are planning to expand your computer science skills, then this course is for you.
The concepts and techniques that you will learn in this course are easily transferable to other programming languages like Java, JavaScript, and many more because you will practice how to analyze and solve problems using code.
Goals
By the end of this course, you will be able to:
Analyze a problem step by step and develop a solution in Python.
Solve a problem in Python using different approaches.
Use built-in Python functions and modules to solve a problem efficiently.
Understand how the code works behind the scenes.
Work with the main elements of Python: strings, lists, tuples, dictionaries, conditionals, loops, recursion, files, and more..
Test your code with various inputs and values to verify its correctness.
Learning Material & Resources
Coding Challenges: 100+ coding challenges with detailed descriptions and hints to guide you through this journey.
Exercises Divided by Levels of Difficulty: the exercises are divided into two levels, so you can start working on them according to your skill level and then solve more advanced exercises as you practice.
Video Lectures: 10+ hours of video lectures and resources with step-by-step solutions and explanations of how to analyze the problems and how the code works behind the scenes.
Visual Effects: You will learn how to solve these exercises with carefully designed visual effects, animations, and diagrams.
Test Cases: each coding challenge has test cases to help you test if your solution is correct. Each problem can be solved in multiple ways, so these test cases will help you confirm if your solution is correct.
Python Files: you will be able to download the sample solutions as Python files to run and experiment with the code in your device.
Progress Tracker: a PDF poster that you can print and cross out as you complete the exercises to help you track your progress.
Cornell Note-taking Method Page Format: a PDF format that you can print to take notes following the Cornell Note-taking Method (a page divided into three sections to write your notes, comments, and summary).
Code Notebook Format: a PDF format that you can print to write your solutions or the sample solutions by hand, analyze the code, and add your comments.
The Coding Challenges Cover:
Strings
Lists and Tuples
Dictionaries
Conditionals
Loops
Recursion
Files
Miscellaneous and More Challenging Exercises
Most exercises combine different elements from these topics, but the exercises are grouped by their most relevant category.
What makes this course unique?
This course is unique because of its emphasis on providing visual and detailed explanations of how the solutions work behind the scenes, so you will not only learn how to implement them in Python, you will actually understand the purpose of each line of code.
Unique study materials complement the course experience. You will find three PDF resources specifically designed for the course: a poster, a note-taking page format with the Cornell Note-taking Method, and a code notebook.
Check your solutions with detailed video lectures and download the sample solutions to run the code on your device.
You will receive a certificate of completion that you can add to your social media profiles to showcase your new skills.
You will also have lifetime access to the course.
You are very welcome to watch the preview lectures and check out the full course curriculum.
If you are looking for an engaging, visual, and practical course, then you found it.
Enroll now, practice your problem-solving skills, and showcase your new Python knowledge.