GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sayanti2003/Basic-python-programs

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
Bank
Bank
 
 
Coin Tosser
Coin Tosser
 
 
FlappyBird
FlappyBird
 
 
Longest Subarray With Sum K
Longest Subarray With Sum K
 
 
Playlist Maker
Playlist Maker
 
 
Strings
Strings
 
 
System32Game
System32Game
 
 
banisha
banisha
 
 
primes in range
primes in range
 
 
.gitignore
.gitignore
 
 
Adreeja Ghatak
Adreeja Ghatak
 
 
BasicPatternPrinting.py
BasicPatternPrinting.py
 
 
Calculator.py
Calculator.py
 
 
Menu_Submenu_Tkinter.py
Menu_Submenu_Tkinter.py
 
 
Python program to check a number is even or odd
Python program to check a number is even or odd
 
 
Queue_Implementation.py
Queue_Implementation.py
 
 
README.md
README.md
 
 
Slider using Tkinter in python
Slider using Tkinter in python
 
 
TravelForm.py
TravelForm.py
 
 
Window Resize Using Tkinter in Python
Window Resize Using Tkinter in Python
 
 
even_number.py
even_number.py
 
 
factorial.py
factorial.py
 
 
flappy-bird-game.py
flappy-bird-game.py
 
 
helloworld.py
helloworld.py
 
 
number_guessing_game.py
number_guessing_game.py
 
 
prime.py
prime.py
 
 
requirements.txt
requirements.txt
 
 
snake-game.py
snake-game.py
 
 
star.py
star.py
 
 

Repository files navigation

Basic Python Programs

A collection of basic Python programs for learning and reference.

Programs Included

1. Factorial Calculator (factorial.py)

Calculates the factorial of a given number using both iterative and recursive approaches.

Usage:

python factorial.py

Features:

  • Iterative factorial calculation
  • Recursive factorial calculation
  • Input validation and error handling
  • Interactive command-line interface

Getting Started

Prerequisites

  • Python 3.x

Installation

  1. Clone the repository:
git clone https://github.com/Sbiswas001/Basic-python-programs.git
cd Basic-python-programs
  1. (Optional) Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies (if any):
pip install -r requirements.txt

Running the Programs

Each program can be run independently:

python factorial.py

Project Structure

Basic-python-programs/
│
├── README.md           # Project documentation
├── requirements.txt    # Python dependencies
├── .gitignore         # Git ignore rules
└── factorial.py       # Factorial calculator program

Contributing

Feel free to add more basic Python programs to this repository!

License

This project is open source and available for educational purposes.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.