Type casting in Python is easy 💱

preview_player
Показать описание
# type casting = The process of converting a value of one data type to another
# (string, integer, float, boolean)
# Explicit vs Implicit

name = "Bro"
age = 21
gpa = 1.9
student = True

# print(type(name))
# print(type(age))
# print(type(gpa))
# print(type(student))

age = float(age)
print(age)

gpa = int(gpa)
print(gpa)

student = str(student)
print(student)

name = bool(name)
print(name)

00:00:00 what is type casting?
00:01:24 type function
00:02:23 explicit cast
00:06:17 implicit cast

#type #cast #casting
Рекомендации по теме
Комментарии
Автор

# type casting = The process of converting a value of one data type to another
# (string, integer, float, boolean)
# Explicit vs Implicit

name = "Bro"
age = 21
gpa = 1.9
student = True

# print(type(name))
# print(type(age))
# print(type(gpa))
# print(type(student))

age = float(age)
print(age)

gpa = int(gpa)
print(gpa)

student = str(student)
print(student)

name = bool(name)
print(name)

BroCodez
Автор

I love how bro almost put his GPA as 4.0 and then backspaced 😂

joysticksforjesuschrist
Автор

Outstanding Explanation I have ever watched!

Afghanistanfutsalfans
Автор

Thank you for breaking everything down into such an easily understandable explanation!

brittany
Автор

Just found this amazing Python playlist, thanks for your help

punchline
Автор

Wow, i'm the first one here. Hello and thank you for the video!

soyozzz
Автор

bro it's awsome
i admit here new
INSAALLAH soon i will finised the playlist💖

RAHAT_PY
Автор

I can't believe that I found an easy way to learn python! I'm so grateful thankss a lott!!

sunny
Автор

I glad to see your channel grow and learning program from your channel, being game programmer is always my dream.

earth
Автор

3rd hello!!, all ur vids are good that's i got a improve in programming.

tongtruonghai
Автор

imp Only strings can concatenate.

student = True

print(student)
print(type(student))

student = str(student)
print(student)
print(type(student))

print("Hello" + student)

True
<class 'bool'>
True
<class 'str'>
HelloTrue

abdulhannan-
Автор

very logical and useful, making the complex theory understandable!!

eefughe
Автор

I appreciate your training approach; it's clear, enjoyable, and straightforward. Thank you for keeping it simple and to the point.

joanneosborne
Автор

I have always believed that education is the ultimate code to crack. Thanks to Bro Code, I have been able to unlock some of the most complex programming languages and computer science concepts with ease. Your videos have been instrumental in helping me level up my skills. So, from the bottom of my heart (and stack), thank you for being the best educational channel out there. Keep up the good work, Bro Code! Your dedication to educating the masses about programming languages and computer science has been truly inspiring. I would love to connect with you and learn more about your journey and how you became one of the best educational channels out there. again, thank you for being a constant source of knowledge and inspiration for us all. You're the real MVP, Most Valuable Programmer

MohyDev
Автор

Have watched u since first long collection of videos
Nice to see that u still help to other people
Btw wanna see more guides by you
thanks

munakusik
Автор

Your crazy man, so easy to understand, even tough I am from arts background.

unknowndrharry
Автор

thank you for your time and efforts and teaching me this.

getoneth
Автор

Recently I seen ur channel bro
I like the way ur teaching bro
Tq bro keep doing like this for us bro💕

shaikakhilh
Автор

this chanel is very helpful for me! thanks bro code

mdjhangirislam
Автор

Very helpful I appreciate the teaching 🫵🏾💯

Faulty