It's a simple question | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

It's a simple question

Hi, could anyone tell me how to write the format number into the scientific notation in the code playground? I tried to get output like this way print ("{;e}".format(1230)) Here I want to find the decimal point.

19th Jan 2024, 1:22 PM
Robin Marma
Robin Marma - avatar
4 Respuestas
+ 6
it's : not ; print("{:e}".format(1230)) you can also try f-string print(f"{1230:e}")
19th Jan 2024, 1:45 PM
Bob_Li
Bob_Li - avatar
+ 1
Robin Marma , Please add a python tag.
20th Jan 2024, 12:30 AM
Rain
Rain - avatar
0
Can anyone help me with my project. Just one question c++ language. Contact me ASAP 0169321197
20th Jan 2024, 10:15 AM
Azrian shafiq
Azrian shafiq - avatar
0
Azrian shafiq , Start a new thread. Include a c++ tag or cpp tag or both. Paste a link to your saved code, so people can open it in the playground and run it. State the problem. Maybe people will post answers.
20th Jan 2024, 4:14 PM
Rain
Rain - avatar