what is Variable
symbol represent some number or String that may change.
data types
scalar and non-scalar both object
scalar
- int : integer
- float : real number
- bool : True or False
- none : Null
non-scalar
- String : data values that are made up of ordered sequences of characters, such as "hello world"
How to check data type
print(type(Variable))
addtional infomation
Case-Sensitive
a and A are different variable
Casting
x = str(4) # "4"
y = int(4) # 4
z = float(4) # 4.0
댓글 없음:
댓글 쓰기