Ad Code

Responsive Advertisement

Basic Python Program - 02.

Write a Python program to convert bits to Megabytes, Gigabytes and Terabytes.

IDE: Visual Studio Code ( VSC ). Present: go2collage.


Download hole Program / Project code, by clicking following link:


Programming Code:

# Basic Python Program # bits => MB, GB, TB bits = float(input("Enter bits: ")) print("Bits converted into: ") mb = bits * 125 * (10**-9) # bits => mb formula gb = bits * 125 * (10**-11) # bits => gb tb = bits * 125 * (10**-13) # bits => tb print("Megabytes: ", mb) print("Gigabytes: ", gb) print("Terabytes: ", tb)

Output:




Post a Comment

1 Comments

Ad Code

Responsive Advertisement