Python program to convert meters into yards

Meters to yards change: Here, we will figure out how to change over meters into yards utilizing python program?

There are numerous issues where we need to compute the separation in yards toward the end yet at first, the estimations are given in meters. So for such sort of issues, the arrangement is changing over the underlying parameters into yards and afterwards performing tasks on it and another choice is to perform activities in meters and afterwards convert the last answer from meters to yards.

Along these lines, here in this article, we will compose a Python code for changing over the meters into yards.

Key: 1 meter = 1.094 yards

Example:

    Input:
    Meters: 245

    Output:
    Yards: 268.03000000000003

Python code to change over Meters to yards:

# Python program to convert Centimeter to Inches 
# taking input
num = float(input("Enter the distance measured in centimeter : "))

# converting from cms to inches
""" 1 inch = 2.54 centimeters"""
inc = num/2.54 

# printing the result
print("Distance in inch : ", inc)

Leave a Comment