Skip to content

Latest commit

 

History

History
153 lines (102 loc) · 2.71 KB

File metadata and controls

153 lines (102 loc) · 2.71 KB

Python Practice

This repository contains my daily Python practice programs.

Day 1

Hello World

Day 2

Addition Program

Day 3

Print numbers from 1 to 10 using a loop

Day 4

Check whether a number is even or odd

Day 5

Find the factorial of a number using a loop

Day 6

Find the sum of first 10 natural numbers

Day 7

Print multiplication table of a number

Day 8

Find the largest of three numbers using if-else

Day 9

Reverse a string using slicing

Day 10

Check whether a string is a palindrome or not

Day 11

Count the number of vowels in a string

Day 12

Character Counter Program

Day 13

Check whether a number is prime or not

Day 14

Print the Fibonacci series using a loop

Day 15

Check whether a number is an Armstrong number

Day 16

Swap two numbers using Python

Day 17

Find the largest element in a list

Day 18

Find the smallest element in a list

Day 19

Reverse a list using slicing

Day 20

Remove duplicate elements from a list

Day 21

Find the second largest element in a list

Day 22

Count even and odd numbers in a list

Day 23

Sort a list without using the built-in sort() function

Day 24

Find the sum of all elements in a list

Day 25

Find the most frequent element in a list

Day 26

Count the frequency of each word using a dictionary

Day 27

Calculate total and average marks using a dictionary

Day 28

Create and use a function to calculate the sum of two numbers

Day 29

Check whether a number is even or odd using a function

Day 30

Build a mini calculator using Python functions

Day 31

Count the number of words in a sentence using split()

Day 32

Count uppercase and lowercase letters in a string

Day 33

Count letters, digits, and special characters in a string

Day 34

Reverse a string using a loop

Day 35

Check whether a string is a palindrome

Day 36

Count vowels and consonants in a string

Day 37

Find the first non-repeating character in a string

Day 38

Check whether two strings are anagrams

Day 39

Find duplicate characters in a string

Day 40

Remove duplicate characters from a string

Day 41

Find the largest and second largest elements in a list

Day 42

Find duplicate elements in a list

Day 43

Find common elements between two lists

Day 44

Combine two lists and remove duplicate elements

Day 45

Rotate a list to the left by one position

Day 46

Find the missing number from a list of consecutive numbers

Day 47

Find the maximum difference between elements in a list

Day 48

Count positive, negative, and zero values in a list

Day 49

Calculate the average of elements in a list

Day 50

Build a student marks analyzer to calculate total, average, highest, and lowest marks