Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

python Exponent representation

Python program to illustrate exponent representation

Sample Input 1 :

45

Sample Output 1 :

4.500000E+01

Program or Solution

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

					    
					

Program Explanation

%E specifies exponent representation