Skip to content

Python Scientific Notation

Syntax

Scientific notation in Python is represented using e or E, where e signifies “times ten raised to the power of.”

# Using scientific notation
a = 1.2e3 # 1.2 × 10^3 = 1200
a = 1.2E3 # 1.2 × 10^3 = 1200
b = 5.67e-4 # 5.67 × 10^-4 = 0.000567
b = 5.67E-4 # 5.67 × 10^-4 = 0.000567