The Python console is a program that allows you to insert Python commands one line at a time. This is called REPL (Read-Eval-Print-Loop).
[: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.[:]
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.
Sometimes in some algorithms you need to know in the operations of division, not the result, but the quotient values and remainder. The remainder operation is often also called module (11 Module 3)
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.
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 ().
Perhaps the most used operation on strings is the concatenation of two or more strings. That is, it is often necessary to combine more strings to form longer sentences.
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.
The variables are practically indispensable in programming and serve to store values in order to be used later.
There are some operators that allow you to write numeric expressions in a more contracted form using with only one operator both the operation and the assignment.