Skip to content

werhereitacademy/Python_Modul_Week_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

Python_Modul_Week_1

πŸ“˜ Beginner Python Projects

Welcome to Beginner Python Projects πŸŽ‰ This repository includes simple yet practical Python exercises to strengthen your skills in lists, dictionaries, strings, loops, conditions, input, and type conversion.


πŸš€ Projects Overview

βœ… Project 1: Favorite Movie List

Practice lists, input, and string basics.

  • Ask the user for 3 favorite movies.

  • Save them in a list.

  • Print:

    • Full list
    • First movie
    • Last movie
    • Number of movies

πŸ‘‰ Hint: Use len(), list[index].


βœ… Project 2: Age Check

Practice input, type conversion, and conditions.

  • Ask the user for their age.
  • If under 18 β†’ print β€œYou are not an adult”.
  • Else β†’ print β€œYou are an adult”.
  • Ask for birth year and calculate age (use 2025).

βœ… Project 3: Word Analysis Tool

Practice string methods, loops, conditions, lists, and sets.

  • Ask the user for a sentence.

  • Analyze:

    • Character count (excluding spaces)
    • Word count
    • Unique words (set)
    • Longest word

πŸ‘‰ Hint: Use split(), len(), set().


βœ… Project 4: Mini Market Basket

Practice dictionaries and loops.

  • Products and prices:

    products = {"apple": 3, "banana": 5, "bread": 2, "milk": 4}
  • Ask the user for 3 products.

  • Calculate total price.

  • Print:

    Your basket: apple, banana, milk
    Total price: 12 TL
    
  • If a product doesn’t exist β†’ print warning.


βœ… Project 5: Student Grading System

Practice dictionaries, lists, loops, and averages.

  • Ask the user for at least 3 students.

  • Each student gets 3 grades.

  • Store in a dictionary:

    students = {
        "Ali": [80, 90, 70],
        "Ayşe": [85, 75, 95],
        "Mehmet": [60, 70, 65]
    }
  • Print each student’s average.

  • Extra: Show the student with the highest average.


βœ… Project 6: Mini Library Management System

Practice dictionaries, sets, loops, and string methods.

  • Library dictionary:

    library = {
        "Python101": "Available",
        "DataScience": "Available",
        "Algorithms": "Available"
    }
  • Menu options:

    1 - Add Book
    2 - Borrow Book
    3 - Return Book
    4 - View All Books
    5 - Exit
    
  • Features:

    • Add new book (Available)
    • Borrow β†’ Borrowed
    • Return β†’ Available
    • Show all books + statistics
    • Exit

πŸ‘‰ Extra:

  • Make book names case-insensitive (lower()).
  • Track borrowed books in a set.
  • Prevent adding duplicate books.

πŸ“‚ How to Use

  1. Clone the repository:

    git clone https://github.com/yourusername/beginner-python-projects.git
  2. Open any project file in your Python IDE.

  3. Run with:

    python project_name.py

πŸ™Œ Contribution

Feel free to fork this repo, open issues, or submit pull requests with new beginner-friendly projects.


⭐ Don’t forget to give this repo a star if it helpe

Hackerrank assignments:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors