@BroCodez

# 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)

@Jezza-u6t

This is absolutely insane. I understood moore about typecasting in 7 mins than university course. Brilliant!

@joysticksforjesuschrist

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

@abdulhannan-18

Basically bool is to check whether that INPUT IS GIVEN OR NOT.

userinput = input("Your name: ")
userinput = bool(userinput)
print(userinput)

if user give any input then True if user does not give any input then False.

#code1

name = "Bro"
name = bool(name)
print(name)

True

#code2

name = ""             #empty string. As there is nothing that's why it will be false.
name = bool(name)
print(name)

False

@Afghanistanfutsalfans

Outstanding Explanation I have ever watched!

@abdulhannan-18

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

@earth7641

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

@joanneosborne2428

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

@MohyDev

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

@punchline1729

Just found this amazing Python playlist, thanks for your help

@LavenderBlack-f1g

Man, you have a special place in heaven. I love youuuuuuu the videos are amazing, seriously that's so nice. Aw man, hard to find people like you. Thank you❤

@sunny34504

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

@DáUmMix

String: "I am so happy!"
Integers: 25
Float: 2.25
Boolean: is_sunday= True/False

@haltsmaul.

Probably important to note that in other programming languages such as Java, you can't just change the data type of a variable.

int num = 3;
num = (float) num;

This would throw an exception because you can't assign a float to an integer variable.

@kingmorbcr1172

i love this channel

@Runbirdie

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

@Checkmate-d9r

so simple and so straightforward

@user-ace96plays

NICELY DONE BRO...❤

@soyozzz

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

@unknowndrharry

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