This repository contains a collection of basic Python programs organized into two main categories: Operators demonstrations and General Programs. Each program is designed to illustrate specific programming concepts and serve as learning examples.
Directory containing programs demonstrating various Python operators:
- Assignment Operators - Examples of different assignment operators in Python
- Bitwise Operator - Demonstration of bitwise operations in Python
- Identity Operators - Examples of identity operators (is, is not)
- Logical Operators - Implementation of logical operators (and, or, not)
- Membership Operators - Usage of membership operators (in, not in)
- Relational Operators - Examples of comparison operators
Collection of general purpose Python programs:
- Armstrong Number - Program to check if a number is an Armstrong number
- String Functions - Demonstration of built-in Python string functions
- Compare Strings - Program to compare two strings
- Concatenate Strings - Program to join two strings together
- Copy String - Example of string copying in Python
- Count Characters - Program to count characters in a string
- Count Vowels - Program to count vowels in a string
- Count Words - Program to count words in a string
- Factorial (Function) - Factorial calculation using functions
- Factorial - Basic factorial calculation
- Fibonacci (Basic) - Program to generate Fibonacci sequence
- Fibonacci (Function) - Fibonacci sequence using functions
- Largest Number - Program to find the largest number
- Leap Year - Program to check if a year is a leap year
- Prime Number - Program to check if a number is prime
- Reverse String - Program to reverse a string
- Sum of Digits - Program to calculate sum of digits
- Sum of N Numbers - Program to calculate sum of N numbers
- Swap Strings - Program to swap two strings
Each program can be run independently using Python 3.x. Simply navigate to the program's directory and run:
python program_name.py
These programs are ideal for learning Python basics and understanding fundamental programming concepts.