answersLogoWhite

0


Best Answer

Here is something I made to convert height while learning python.

height_cms = 190

inches = height_cms / 2.54

feet = inches / 12

remainder_inches = inches % 12

print "%d cms is %d feet and %d inches." % (height_cms, feet, remainder_inches)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a python program to convert meters and centimeters into feet and inches?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert meters and centimeters to feet and inches in C?

You can convert meters and centimeters to feet and inches in C by first converting the total length to inches. Then, divide the total inches by 12 to get the feet and the remainder will give you the inches. Here's a simple formula you could use: total_inches = (meters * 100 + centimeters) * 0.393701; feet = total_inches / 12; inches = total_inches % 12;


Convert 5 ft 5 inches to metric?

Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.


What is 5 foot 7 inches in meters and centimeters?

The answer is 170.18 centimeters. One inch is equal to 2.54 centimeters. To convert inches into centimeters, multiply the 67 inches by 2.54.


How will you convert inches into meter and centimeter?

-- take the number of inches-- multiply it by 0.0254-- the result is the number of meters--------------------------------------------------------- take the number of meters-- everything to the left of the decimal point represents whole meters-- take everything to the right of the decimal point-- move the decimal point two places to the right-- the result is the number of centimeters, in addition to the number of whole meters


How many centimeters is 151 feet 11 inches?

The answer is 4630.42 centimeters, or 4.63042 meters. One inch is equal to 2.54 centimeters. To convert inches into centimeters, multiply the 1823 inches by 2.54.


Convert 4 ft 11 inches to meters and centimeters?

4 feet 11 inches is equivalent to 1.4986 meters or 149.86 centimeters.


What is 163 meter converted to feet and inches?

163 meters = 16300 centimeters Divide the centimeters by 2.54 to get them in inches. Then divide the inches by 12 to convert inches to feet.


How many meters and centimeters are there in 5 feet 8 inches?

There are 1.73 meters in 5 feet 8 inches. To convert 5 feet to meters, multiply by 0.3048 (1 foot = 0.3048 meters). To convert 8 inches to centimeters, multiply by 2.54 (1 inch = 2.54 cm).


What is 5'7 in kilograms?

To convert height from feet and inches to centimeters, first convert feet to inches (5 feet = 60 inches) and add the remaining inches (60 inches + 7 inches = 67 inches). Then, multiply the total inches by 2.54 to convert to centimeters (67 inches * 2.54 = 170.18 cm). To convert centimeters to meters, divide by 100 (170.18 cm / 100 = 1.70 m). Finally, to convert meters to kilograms, multiply by 100 to get a rough estimate (1.70 m * 100 = 170 kg).


How long is 20 inch in centimeters?

The measurement 20 inches is the same as 50.8 centimeters. This is because 1 inch is the same as 2.54 centimeters. You can convert the 20 inches into meters aswell which would be 0.508 meters.


How much is 300 cm in meters?

The answer is 118.11 inches (approx.). Inches and centimeters are both units of linear measurement. Inches are used in the imperial system whereas centimeters are used in the metric system. To convert from cm to inches, multiply the cm unit by 0.393701.


Convert a volume of 1.84 cubic inches into cubic centimeters and cubic meters?

1.84 cubic inches is equal to approximately 30.16 cubic centimeters and 0.00003016 cubic meters.