#python #pythontutorials #pythonprogramming #LearningSquad
In this video, you will learn about Type Casting in python, Type Casting is a very important topic that helps in preventing our code bug-free.
You can access the Playlist of Python Tutorials (Basics to Advanced) via below link:
https://www.youtube.com/watch?v=tFJLH...
Below is the code used:
#implicit(no force required)
a = 3
print(type(a))
b = 3.7
#print(type(b))
c = a+b
#print(c)
#print(type(c))
#required_datatype(exp)
num = int('11')
print(type(num))
num_2 = 9
print(type(num_2))
sum = num+num_2
print(sum)
print(type(sum))
w = 1
w = float(w)
print(w)
print(type(w))
a = '11'
print(type(a))
b = int(a)
print(b)
a = 'sachin'
b = list(a)
print(b)
print(type(b))
b = tuple(a)
print(b)
print(type(b))
En esta página del sitio puede ver el video en línea #11 Type Casting in Python | Implicit and Explicit Type Conversion | Typecasting in Hindi de Duración hora minuto segunda en buena calidad , que subió el usuario Python Learning Squad 08 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 269 veces y le gustó 30 a los espectadores. Disfruta viendo!