#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))
На этой странице сайта вы можете посмотреть видео онлайн #11 Type Casting in Python | Implicit and Explicit Type Conversion | Typecasting in Hindi длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Python Learning Squad 08 Август 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 269 раз и оно понравилось 30 зрителям. Приятного просмотра!