Docsity

INTRODUÇÃO A PYTHON ( EM INGLÊS), Notas de estudo de Algoritmos e Programação

Toggle sidebar
bg1
PYTHON INTRODUCTION
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.
pf2

Pré-visualização parcial do texto

Baixe INTRODUÇÃO A PYTHON ( EM INGLÊS) e outras Notas de estudo em PDF para Algoritmos e Programação, somente na Docsity!

PYTHON INTRODUCTION

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.