Python (1) - Copy
Python (1) - Copy
Assignment Objective:
Learn how to use integers, strings, and floats in Python by completing real-life inspired tasks
like storing names, prices, and quantities.
📘 Instructions:
1. Complete all the tasks below in a single Python file.
5. Submit the GitHub link in the "About" section of the lesson before the due date.
✍️ Tasks:
✅ Task 1: Integer
● Create a variable age with your age (as a whole number).
1. # Example
2. age = 14
3. print("In 5 years, you will be", age + 5)
✅ Task 2: String
● Create a variable name with your first name.
✅ Task 3: Float
● Create a variable height and store your height in meters (e.g., 1.65).
○ Item: "Book"
○ Quantity: 4 (Integer)
○ Their name
○ The quantity
5. Hello [name]! You bought [quantity] [item]s. Total: [total_price] dollars.
3. Submit the link in the "About" section of the lesson by 16th [Month] 2025.