Skip to content

NeslihanCanbaz/Python_Modul_Week_1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

Languages

  • Python 100.0%