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.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.

Python Lessons - 1.11 Using an editor

Python Lessons – 1.11 Using an editor

An IDLE is a text editor that allows you to do the programming, that is the writing of the programs in Python in a simple and fast. In fact from the same editor, you can create a new. py file, write the code, run the program, fix the errors, and save the program, to reuse it at a later time

Python Lessons - 2.11 The FOR Loop m

Python Lessons – 2.11 FOR Loop

Each element of the list array is copied into a temporary variable called item, on which you will work within the for loop by writing a series of commands in the indentation. No need for counters, no need to know how long the list is.