This repository contains beginner-friendly Python programs created as part of Python practice tasks.
Each task focuses on core Python concepts and is fully console-based.
A simple text-based Hangman game where the player guesses a word letter by letter.
Features:
- Uses a predefined list of words
- Maximum of 6 incorrect guesses
- Displays correct and incorrect guesses
Concepts Used:
- random
- while loop
- if-else
- strings
- lists
A basic stock portfolio calculator using hardcoded stock prices.
Features:
- User enters stock names and quantities
- Calculates total investment value
- Saves result in a
.txtfile
Concepts Used:
- dictionary
- input/output
- basic arithmetic
- file handling
Automates extraction of email addresses from a text file.
Features:
- Reads data from
input.txt - Extracts all email addresses using regex
- Saves them into
emails.txt
Concepts Used:
- re (regular expressions)
- file handling
A simple rule-based chatbot that responds to basic user inputs.
Supported Inputs:
- hello
- how are you
- bye
Concepts Used:
- if-elif
- functions
- loops
- input/output
- Make sure Python is installed
- Open terminal or VS Code
- Run any file using:
python filename.py