Posts

Showing posts from June, 2023

Python literals

Python variables . Python Variable :- In python variable and identifire are same. Variable are containers for storing data values. Python has no command for declearing a variable Variable Name :- A variable name must start with a letter or the underscore carrecter. Variable name can't start with a number. A variable name can only contain alpha numeric carrectors and under score ( a-z,0-9 and _ ). Variable name are case sensitive. Variable name can't be any if the python key words. Python litrals :- Python literals are the smallest unit to store a value inside a variable which are of the following types - Number litrals Int ( Intiger ) Float Complex Boolean String litrals Spacial litrals Number litrals :- Number literals can be defined in three types in Python. Int ( intiger ) :- Intiger can define both positive and nigative. Float :- Float can define number with desimal float are also positive or nigative.