

Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!


Notes, study guides. PRINT: is the easiest command to send a specific message to the screen or other display device. The message can be a number, text or a result of a calculation. The print command is always accompanied by parentheses containing the output we want to generate. ex: print(1000) You can use python to do operations with numbers. To output the calculation result, you just need to enter the mathematical operation inside the print command. ex: print(9 + 4 - 7) = 6. ● multiplication we use the symbol (*) print(12 * 12) = 144. ● division we use the symbol (/) print(8 / 2) = 4.0. Computers treat different types of data in different ways. The data type tells a computer how to interpret, store, and operate on the value. The most commonly used numeric data types are: integer: an integer, without a comma, which can be positive, negative or zero.
float: a number that has decimal places, it can also be positive or negative.