Documente Academic
Documente Profesional
Documente Cultură
In [1]: n = int("10")
n
Out[1]: 10
In [2]: f = float("10.5")
f
Out[2]: 10.5
In [8]: c
In [9]: bin(10)
Out[9]: '0b1010'
In [10]: hex(10)
Out[10]: '0xa'
In [11]: int('0b1010',2)
Out[11]: 10
In [12]: int('0xa',16)
Out[12]: 10
1 de 4 12/01/2018 08:41 a. m.
Leccion 8 (Apuntes) - Funciones integradas http://localhost:8888/nbconvert/html/Fase 2 - Manejo de datos y optimiz...
In [13]: abs(-10)
Out[13]: 10
In [14]: abs(10)
Out[14]: 10
In [15]: round(5.5)
Out[15]: 6
In [16]: round(5.4)
Out[16]: 5
eval(): Evalúa una cadena como una expresión, acepta variables si se han definido
anteriormente
In [17]: eval('2+5')
Out[17]: 7
In [19]: #n = 10
eval('n*10 - 5')
Out[19]: 95
Out[20]: 10
In [21]: len([])
Out[21]: 0
2 de 4 12/01/2018 08:41 a. m.
Leccion 8 (Apuntes) - Funciones integradas http://localhost:8888/nbconvert/html/Fase 2 - Manejo de datos y optimiz...
In [ ]: help()
3 de 4 12/01/2018 08:41 a. m.
Leccion 8 (Apuntes) - Funciones integradas http://localhost:8888/nbconvert/html/Fase 2 - Manejo de datos y optimiz...
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/3.5/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
help> topics
Here is a list of available topics. Enter any topic name to get more help.
help> ATRIBUTES
No Python documentation found for 'ATRIBUTES'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
help> ATTRIBUTES
Attribute references
********************
4 de 4 12/01/2018 08:41 a. m.