Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

python Exponent representation

Python program to illustrate exponent representation

Sample Input 1 :


Sample Output 1 :


Program or Solution

price=float(input("Enter the cost:"))
print("%E" %price)


Program Explanation

%E specifies exponent representation