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

Python Programming

Time to deep dive into Python Programming
Created byPradeep Chelani
Last updated 7/2020
English
English [Auto],

What you'll learn

  • Python Common Programs
  • Python Programming
  • Python Tricks

Course content

1 section25 lectures1h 55m total length
  • Introduction0:47

    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.

  • Program 1: Check String is Palindrome or not9:58

    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.

  • Program 2: Print first n number of Fibonacci series4:02

    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.

  • Program 3: Find Max in list without using max function3:42

    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.

  • Program 4: Sum of digits in number4:29

    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.

  • Program 5: Print Multiplication Table2:42

    Define a function that, given a number, uses a for loop with range to generate the multiplication table and return the results.

  • Program 6: GCD of list3:41

    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.

  • Program 7: LCM of List4:28

    learn to compute the least common multiple of all list elements by iteratively applying lcm to pairs using gcd from the math module.

  • Program 8: Reverse list without using range or reverse function5:03

    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.

  • Program 9: Remove odd position characters from string3:16

    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.

  • Program 10: Find number of occurrence of elements2:59

    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.

  • Program 11: Program to find n-th largest number in the list3:14

    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.

  • Program 12: Remove all duplicates from list2:40

    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.

  • Program 13: Inverted Star Pattern3:33

    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.

  • Program 14: Check Number is Armstrong number or not5:21

    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.

  • Program 15: Remove nth occurence of number from list5:14

    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.

  • Program 16: Rotate the list4:17

    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.

  • Program 17: Find Median of List5:36

    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.

  • Program 18: Reverse the number6:28

    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.

  • Program 19: Separate odd and even numbers from list4:35

    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.

  • Program 20: Find Unique factors of a number5:04

    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.

  • Program 21: Select card randomly from Deck3:45

    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.

  • Program 22: Type of Triangle6:48

    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.

  • Program 23: Basic Calculator7:36

    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.

  • Program 24: Bubble Sort5:49

    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.

Requirements

  • Python Basic

Description

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

Who this course is for:

  • Students who knows Python basic and want to learn about common Python programs