LESSON-1: PYTHON VARIABLES DATA TYPES
PYTHON VARIABLES DATA TYPES
A volume that stores data in it is called a variable. You can compare the variable to a box. You give a value to him. And he keeps the value you give for you. Variable names cannot start with a number, and any command contained in the program cannot be assigned as a variable name.
a = 5 —> 5 on the right side of equality is assigned to the variable “a” on the left side of equality.
article=” I’m learning Python “- – – – > the variable in the article name is assigned” I’m learning Python”.
character= “a” (char)
strvalue= “Merhaba Python Öğreniyorum” (String)
int: refers to integers 32 bits,± 2147483647 we can show the integer 105 as an example.
long: refers to long integers.
float: the data type refers to a decimal real number. It has a 64-bit length and precision. As an example, we can share the number 3.14159.
str: it can consist of combinations of letters or Numbers and either string ‘Ayşe 35 years old’
bool: true, false when we go down to the essence, it actually has one or zero values
SCREEN SHOT: 12
Variable and function nomenclature rules
*May contain lowercase letters, numbers, and _
*Must begin with the letter
__ letter is accepted
◦Are case-sensitive. A and A are not the same
Python reserved words should not be used.