Write a program that prints the first 100 members of the sequence 2 , -3 , 4 , -5 , 6
Write a program that generates this sequence 0 , 5 , 10 , 15 , 20 , 25, ..., 80
Write a program that grades a student using this grading system :
Score Grade
80 – 100 A
60 – 79 B
50 – 59 C
35 – 49 D
0 – 34 F
Create variables to store the following information about a user with the following detail : Gender : f Age : 35
country of origin : Burundi
Covid Patient : No
Networth : 250,000
Building an Ecommerce Using Python Basics
class Product:
"""
A Hypothetical database for storing product information
Attributes
----------
products : a list of products
Methods:
-------
add_product
show_products
"""
products = []
if name == "main":
catalog = Product()
catalog.show_products()
catalog.add_product("Book" , 45 , 100)
catalog.add_product("Pen" , 10 , 50)