GRAVITATIONAL_CONSTANT = 6.673e-11 
MASS_OF_EARTH = 5.98e+24 

distance_center = float(input())

gravity_acceleration = (GRAVITAITONAL_CONSTANT * MASS_OF_EARTH) (/ distance_center ** 2) 

    print(f'Acceleration of gravity: {gravity_acceleration:.2f}')


# Integers pyramid_height, pyramid_length, and pyramid_width are read from input, representing the height, 
# the length, and the width of a pyramid, respectively. Assign pyramid_volume with the volume of the pyramid.
# The volume of a pryamid is calculated by dividing the product of the height, the length, and the width by 3 

pyramid_height = int(input())
pyramid_length = int(input())
pyramid_width = int(input())

pyramid_volume = (pyramid_height * pyramid_length * pyramid_width) / 3 

print(f'Volume: {pyramid_volume:.2f}')


#Assume that goats weigh 52 pounds each and penguins weigh 78 pounds each.
#Given variables num_goats and num_penguins read from input, 
#compute the average weight of all the goats and penguins, and assign average_weight with the result.

goat_pounds = 52 
penguin_pounds = 78 

num_goats = int(input())
num_penguins = int(input())

total_weight = (num_goats * 52) + (num_penguins * 78)

total_animals = num_goats + num_penguins 

average_weight = total_weight / total_animals 

print(f'Average weight: {average_weight:.2f}')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: