Python Tutorial 3---"Variables, Datatypes and Typecasting "
Python Tutorial 3--- "Variables, Datatypes and Typecasting " This PROGRAM or TUTORIAL about Python's "Variables, Datatypes and Typecasting " DOC Variable: A variable is a name given to any storage area or memory location in a program. In simple words, we can say that a variable is a container that contains some information, and whenever we need that information, we use the name of that container to access it. Let's create a variable: a = 34 # Variable storing an integer b = 23.2 # Variable storing real number Here a and b are variables, and we can use a to access 34 and b to access 23.2. We can also overwrite the values in a and b Data Types in Python: Primarily there are following data types in Python. Integers (<class 'int'>): Used to store integers Floating point numbers (<class 'float'>): Used to store decimal or floating-point numbers Strings (<class 'str'>): Used to store st...