Skip to content

Hamza11129/python-tasks-codealpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Programming Tasks – CodeAlpha

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.


βœ… Task 1: Hangman Game

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

βœ… Task 2: Stock Portfolio Tracker

A basic stock portfolio calculator using hardcoded stock prices.

Features:

  • User enters stock names and quantities
  • Calculates total investment value
  • Saves result in a .txt file

Concepts Used:

  • dictionary
  • input/output
  • basic arithmetic
  • file handling

βœ… Task 3: Task Automation (Email Extraction)

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

βœ… Task 4: Basic Chatbot

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

πŸ›  How to Run

  1. Make sure Python is installed
  2. Open terminal or VS Code
  3. Run any file using:
    python filename.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages