This repository contains the projects I completed as part of my Python Programming Internship at CodeAlpha.
The internship focused on building hands-on experience with Python fundamentals, data structures, file handling, OOP concepts, and real-world applications.
- Organization: CodeAlpha
- Domain: Python Programming
- Duration: [Add your duration, e.g., 1 Month / 6 Weeks]
- Focus Areas:
- Python basics & problem-solving
- File handling & automation
- Data structures & OOP concepts
- Practical mini-projects
A simple text-based Hangman game where the player guesses a word one letter at a time.
- Uses:
random
,while
,if-else
, lists, strings - Maximum 6 incorrect guesses allowed
- Predefined list of 5 words
π File: Task1_Hangman/hangman.py
python hangman.py
πΉ Task 2: Stock Portfolio Tracker
A program to calculate total investment value based on user input and predefined stock prices.
Uses: dictionary, loops, input/output, file handling
Stock prices are hardcoded (AAPL, TSLA, MSFT, AMZN)
Saves results in a portfolio.txt file
π File: Task2_StockPortfolio/stock_portfolio.py
βΆοΈ Run with:
bash
Copy code
python stock_portfolio.py
πΉ Task 3: Task Automation Script
Automates moving all .jpg files from one folder to another.
Uses: os, shutil, file handling
Creates a destination folder if it doesnβt exist
Demonstrates Python for real-life automation
π File: Task3_Automation/automation.py
βΆοΈ Run with:
bash
Copy code
python automation.py
(Make sure you create a source_folder with .jpg files before running.)
πΉ Task 4: Basic Chatbot
A simple rule-based chatbot with predefined responses.
Uses: functions, loops, if-elif
Handles greetings, questions, and exit (bye)
π File: Task4_Chatbot/chatbot.py
βΆοΈ Run with:
bash
Copy code
python chatbot.py
π Tech Stack Used
Python 3.x
Built-in Libraries: os, shutil, random
π Repository Structure
Copy code
CodeAlpha_PythonProjects/
β
βββ Task1_Hangman/
β βββ hangman.py
β
βββ Task2_StockPortfolio/
β βββ stock_portfolio.py
β
βββ Task3_Automation/
β βββ automation.py
β
βββ Task4_Chatbot/
β βββ chatbot.py
β
βββ README.md
π Acknowledgment
This project was completed as part of my Python Internship at CodeAlpha.
Grateful for the opportunity to learn, practice, and build real-world Python applications.