
Explore common real-world programs in Python programming, understand problem statements and solution types, and practice coding by pausing to code and comparing solutions to improve.
Learn three Python methods to check a string palindrome: reverse with a range step, reverse with iterator and join, and character-by-character half comparisons, with examples like madam and level.
Learn to generate the first n fibonacci numbers using a simple function, handle negative input, and iteratively update the two trailing values to print the sequence.
Learn to find the maximum in a list without the max function by initializing with the first element and iterating to update on larger values.
Compute the sum of digits of a number by iterating with a while loop, using modulo 10 and integer division by 10 to accumulate the total.
Define a function that, given a number, uses a for loop with range to generate the multiplication table and return the results.
Learn to compute the gcd of all elements in a list by implementing a custom gcd function, then iteratively fold the list from the first two elements through the rest.
learn to compute the least common multiple of all list elements by iteratively applying lcm to pairs using gcd from the math module.
Develop a custom Python function to reverse a list without using range or the reverse function, showing how to extend elements and handle odd and even lengths.
Learn to remove odd-position characters from a string in Python using a function and an alternative for-loop approach, with step-by-step demonstrations and output examples.
Calculate how many times an element occurs in a list using a built-in count or a custom loop that checks each item for equality, for example three appears four times.
learn how to write a function to find the n-th largest number in a list by sorting to reveal the largest, second largest, and beyond, and returning the correct element.
Learn to remove all duplicates from a list in Python by converting to a set for uniqueness and converting back to a list using a remove_duplicate function.
Learn to generate an inverted star pattern in Python using loops and the string multiplication operator to print rows of spaces and stars forming an inverted v.
Build a program to check if a number is an Armstrong number by summing the cubes of its digits using modulo and division. The example 153 illustrates the check.
Learn to remove the nth occurrence of a given value from a Python list by iterating, counting matches, and removing the target when the count reaches k.
Demonstrates rotating a python list by removing an element at a given index and inserting it at the front, using a function and list operations.
Learn to find the median of a list by sorting, handling odd and even lengths, and computing the average of the two middle elements for even-sized lists.
Learn two methods to reverse an integer in Python: convert to string and reverse, or use a while loop with modulo and division to reconstruct the reversed number.
Learn to split a list into two outputs by separating even and odd elements, using append to build the two lists, and returning both from a function.
Discover how to find unique factors of a number by looping up to its square root and using the modulo operation to collect factor pairs and avoid duplicates.
Create a Python program that uses the random library to pick a random card from a deck via a function, returning cards like two of diamonds or ace of hearts.
Input three sides, check triangle feasibility using the sum of two smaller sides versus the largest side, and classify the triangle as equilateral, isosceles, or scalene.
Design and run a basic calculator in Python that uses a while loop to perform addition, subtraction, multiplication, and division based on user input, with an option to continue.
Learn how to implement bubble sort in Python by repeatedly comparing adjacent elements, moving the largest to the end, and using nested loops with range.
This course will helpful for those students who have just learnt the basic of Python programming and want to explore the common programming problem which comes across real world application. This course will explore common programs like check string is palindrome or not, find largest number, reverse the number; sorting of number, create basic calculator etc