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.[:]

Python Lessons - 1.3 Floating numbers

Python Lessons – 1.3 Floating numbers

The floats, or floating numbers, are the decimal numbers, that is, those that have the comma (0.24,-3.1423333). These numbers can be defined directly by writing the number with the comma, or by using operators that generate decimal numbers such as Integer divisions.

Python Lessons - 1.5 Strings

Python Lessons – 1.5 Strings

In Python You can use text and you can do it using strings, or strings. You can define a string using both the single and the double quotation mark.

Python Lessons - 1.6 Input and output

Python Lessons – 1.6 Input and Output

Often when running a program, you must return some text strings (output) to the console. We have already seen that to correctly report a string or variable you use the function print ().

Python Lessons - 1.8 Type conversion m

Python Lessons – 1.8 Type conversion

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.