Posts

Showing posts with the label Python - Variables

Python Programming Language - Variables

Image
A variable is an area of ​​computer memory that has a name. For example,  num = 9 name = 'Carl' users = [ 'Morgan' , 'Rick' , 'Enid' , 'Negan' ] All of these are variables. Structurally, it consists of three parts: Identifier is a name created by the programmer to refer to a variable. In the examples above, these are num, name and users. Value is information that is stored in the computer’s memory and with which the program works. In the examples above it is 9, 'Carl' and ['Morgan', 'Rick', 'Enid', 'Negan']. Address is the number of the memory cell in which the variable value is stored. When creating a variable in Python, programmers come up with names for it according to certain naming rules: The first character must be an uppercase or lowercase or an underscore_. Other characters can be uppercase or lowercase, underscores and numbers. Spaces cannot be used. The variable name must not match any of the rese