adambard / adambard/learnxinyminutes-docs
Missing scientific notation and Binary in Python
Abierto
- Lenguaje dominante
- Markdown
- Estrellas
- 12.3k
- Forks
- 3.7k
- Merge medio
- 13 h 10 min
- PR fusionados (30 d)
- 6
Descripción
You can add the letter e or E followed by a positive or negative integer to specify that you're using scientific notation.
print(16e3)
Output: 16000.0
Python also allows you to represent large numbers in the decimal format using underscores as the delimiter instead of commas to make it easier to read.
num = 16_000
print(num)
Output: 16000
Binary in Python
You can write an integer in Python using binary syntax using the 0b prefix
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.