-3

I have this:

print('bionumbers:',bionumbers)

which outputs:

bionumbers: 9381343483.4

How can I output this value in exponent notation?

D.Kim
  • 151
  • 1
  • 10

1 Answers1

4

Using Python3 format syntax :

print(f'bionumbers: {bionumbers:e}')
jadsq
  • 2,662
  • 2
  • 17
  • 30