Python Lessons – 1.2 Simple operations

Python Lessons - 1.2 Simple operations

[:it]Python allows you to perform arithmetic calculations in real time as if it were a calculator. You can directly enter values for operations on a single line. Python [:en]allows you to perform arithmetic calculations in real time as if it were a calculator. You can directly enter values for operations on a single line.[:]

Continue reading

Python Lessons – 1.8 Type conversion

Python Lessons - 1.8 Type conversion m

It often happens (even much more than we realize) that in the lines of code to perform operations between values of different types. We've already seen it between integers and floats. In fact, the integers were implicitly converted to float by the interpreter and then the operation was performed. In This case we talk about implicit conversions.

Continue reading