Write Python Program To Store Seven Fruits Name In a List Enter By The User

 Write Python Program To Store Seven Fruits Name In a List Enter By The User.










Code:

fruit1 = input("Enter Fruit Number 1: ")
fruit2 = input("Enter Fruit Number 2: ")
fruit3 = input("Enter Fruit Number 3: ")
fruit4 = input("Enter Fruit Number 4: ")
fruit5 = input("Enter Fruit Number 5: ")
fruit6 = input("Enter Fruit Number 6: ")
fruit7 = input("Enter Fruit Number 7: ")

Fruits = [fruit1, fruit2, fruit3, fruit4, fruit5, fruit6, fruit7]
print(Fruits)

Output:











Download Source Code

Comments

Popular posts from this blog

Write A Python Program, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.