-3

I have this:

print('bionumbers:',bionumbers)

which outputs:

bionumbers: 9381343483.4

How can I output this value in exponent notation?

D.Kim
  • 151
  • 3
  • 10

1 Answers1

4

Using Python3 format syntax :

print(f'bionumbers: {bionumbers:e}')
jadsq
  • 3,033
  • 3
  • 20
  • 32