how to do casting in python code example
Example 1: Python Casting
x = int(1) # x will be 1
y = int(2.8) # y will be 2
z = int("3") # z will be 3
Example 2: how to tyoecast in python
example = 1.3234325
print(type(example))
x = int(1) # x will be 1
y = int(2.8) # y will be 2
z = int("3") # z will be 3
example = 1.3234325
print(type(example))