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
Post a Comment