Python Assignments
Python Assignments
Assignment Overview:
In this assignment, you will practice using different list methods in Python. Lists are a
fundamental data structure, and understanding how to manipulate them is essential for
Python programming.
Instructions:
Complete the following tasks using Python list methods. Write your code in a single
Python file.
Tasks:
Assignment Overview:
In this assignment, you will practice using different dictionary methods in Python.
Dictionaries are essential data structures that store key-value pairs and are widely used
in Python programming.
Instructions:
Complete the following tasks using Python dictionary methods. Write your code in a
single Python file.
Tasks:
Assignment Overview
In this assignment, you will create a simple shopping discount calculator that
determines discounts based on purchase amount, customer loyalty status, and
seasonal promotions. This program will use if statements to make decisions similar to
those in real-world retail systems.
Instructions
Create a Python program that calculates the final price after applicable discounts. Do
not use any functions - just use variables and if statements.
Tasks
Assignment Overview:
In this assignment, you will create number patterns using for loops in Python.
Instructions:
Write a Python program that generates the following patterns using for loops:
Assignment Overview:
Instructions:
Write a Python program that:
1. Sets a "secret number" (you can choose any number between 1 and 50)
2. Asks the player to guess the number
3. Tells the player if their guess is too high or too low
4. Keeps asking until the player guesses correctly
5. Keeps track of how many guesses it took
Assignment Overview:
In this assignment, you will create a simple student grade management system using
Python lists and dictionaries. This will help you understand how these data structures
work together to organize and manage information.
Requirements: