fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@@ -0,0 +1,24 @@
---
title: Python Hex Function
localeTitle: Función Hex Python
---
`hex(x)` es una función incorporada en Python 3 para convertir un número entero en una cadena [hexadecimal en](https://www.mathsisfun.com/hexadecimals.html) minúsculas con el prefijo "0x".
## Argumento
Esta función toma un argumento, `x` , que debe ser de tipo entero.
## Regreso
Esta función devuelve una cadena hexadecimal en minúsculas con el prefijo "0x".
## Ejemplo
```
print(hex(16)) # prints 0x10
print(hex(-298)) # prints -0x12a
print(hex(543)) # prints 0x21f
```
![:rocket:](//forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=2 ":cohete:") [Ejecutar código](https://repl.it/CV0S)
[Documentacion oficial](https://docs.python.org/3/library/functions.html#hex)