Simple Data Types in Python
A toy store is very successful in two of its products: clowns and dolls. Suppose, Each clown weighs 112 g and each doll 75 g. Write a program that reads the number of clowns and dolls sold in the last order and calculates the total weight of the package to be shipped.
clown_weighs = 112 doll_weighs = 75 clowns = int(input("Enter the number of clowns to send: ")) dolls = int(input("Enter the number of dolls to send: ")) total_weighs = clown_weighs * clowns + doll_weighs * dolls print("The total weight of the package is " + str(total_weighs))
Hope You will learn Something. Happy Coding.