diff --git a/aula6.py b/aula6.py new file mode 100644 index 0000000..f467b9a --- /dev/null +++ b/aula6.py @@ -0,0 +1,9 @@ +# conversão de tipos, coerção +# type convertion, typecasting, coercion +# é o ato de converter um tipo em outro +# tipos imutáveis e primitivos: +# str, int, float, bool +print(int('1'), type(int('1'))) +print(type(float('1') + 1)) +print(bool(' ')) +print(str(11) + 'b')