Program Name: Assign2-1_YourLastName.pyThe BMI is often used to determine whether a person is overweight or underweight for his or her height.A person’s BMI is calculated with the following formula: BMI = weight * 703/height^2, where weight is measured in pounds and height is measured in inches. The program should ask the user to enter his or her weight and height and then display the user’s BMI. The program should also display a message indicating whether the person has optimal weight, is underweight, or is overweight. Aperson’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight.Here is an example of the desired output:Once you create the program, please name your Python file: Assign2-1_YourLastName.pyProgram Name: Assign2-2_YourLastName.pyThe distance a vehicle travels can be calculated as follows:distance = speed x time For example, if a train travels 40 miles per hour for three hours, the distance traveled is 120 miles. Writea program that asks the use for the speed of a vehicle (in miles per hours) and the number of hours it has traveled. It should then use a loop to display the distance the vehicle has traveled for each hours of that time period.Here is an example of the desired output: