Weight of a motor bike

 # Weight of a motor bike


Bike = {"Chopper":315, "Adventure bike":250, "Dirtbike":100, "Touring bike":400, "Sport bikes":180, "Bagger":340, "Cruiser":250, "Cafe racer":200, "Scooter":115, "Moped":80 }


B = input("Enter bike : ")

print("Weight of", B, "is", Bike[B],"kg.")


"""

Sample output

>python wtofbike.py

Enter bike : Scooter

Weight of Scooter is 115 kg.

"""

1 comment:

Don't be a silent reader...
Leave your comments...

Anu