what is Python Variables
Python Variables
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"
checking data type
print(type(Variable))
Case-Sensitive
a and A are different variable
Casting
x = str(4) # "4"
y = int(4) # 4
z = float(4) # 4.0
0 개의 댓글:
댓글 쓰기