Back to Browse

datatypes in python | SNSINSTITUTIONS

7 views
Jan 18, 2026
5:28

In Python, variables are names given to memory locations used to store data, while data types classify the kind of data a variable holds. Python is a dynamically typed language, so you do not need to explicitly declare the data type of a variable; the interpreter infers it automatically based on the assigned value. Variables in Python Assignment: Variables are created using the assignment operator (=). For example, age = 30 creates a variable named age storing the integer value 30. Naming Rules: Names can contain letters, numbers, and underscores (_). They must start with a letter or an underscore. They are case-sensitive (myVar and myvar are different). Reserved Python keywords (e.g., if, else, for) cannot be used as variable names. Dynamic Typing: A variable's type can change during program execution. For instance, a variable storing an integer can later be assigned a string value. Checking Type: You can determine the data type of any variable using the built-in type() function, such as type(age). #snsinstitutions #snsdesignthinkers #designthinking

Download

1 formats

Video Formats

360pmp43.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

datatypes in python | SNSINSTITUTIONS | NatokHD