#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))
Nesta página do site você pode assistir ao vídeo on-line #11 Type Casting in Python | Implicit and Explicit Type Conversion | Typecasting in Hindi duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python Learning Squad 08 Agosto 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 269 vezes e gostou 30 espectadores. Boa visualização!