DEV Community

Avinash Mathi
Avinash Mathi

Posted on

casting in pytho programming

casting in python
a=int(6)
b=int(7)
c=int(6)
print(a,b,c)
a=str("56")
b=str("23")
c=str("45")
print(a,b,c)
a=float(1)
b=float(6)
c=float(7)
print(a,b,c)
o/p
6 7 6
56 23 45
1.0 6.0 7.0

Top comments (0)