Monthly Archives: July 2019

Notas sobre Python

Tipos de variables boolean, int, floats, complex, strings, tuples y lists type(expression) devuelve el tipo de variable, type(True):bool  –  True con mayúculas. Casting  float(2):2.0   int(1.1):1    int(‘1’):1    int(‘A’) Error    str(1):”1”    str(4.5):’4.5’    int(True):1  bool(0): False 25 // 6 –> 4 Integer division Strings Son objetos que tienen sus métodos propios. Name = …

Read More »