# 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)
@hallilo71662 жыл бұрын
Hi brocode I love your videos you helped me so much starting with java and we can watch that all for free THX 😊
@Cp_elisha11 ай бұрын
bro what is name of tool you are using it's vscode or what
@balaportejean70156 ай бұрын
@@Cp_elishapycharm And he downloaded python online Watch the first video of the series
@joysticksforjesuschrist10 ай бұрын
I love how bro almost put his GPA as 4.0 and then backspaced 😂
@Afghanistanfutsalfans Жыл бұрын
Outstanding Explanation I have ever watched!
@earth76412 жыл бұрын
I glad to see your channel grow and learning program from your channel, being game programmer is always my dream.
@joanneosborne242810 ай бұрын
I appreciate your training approach; it's clear, enjoyable, and straightforward. Thank you for keeping it simple and to the point.
@EthioMediaCorporation Жыл бұрын
Great explanation
@WINDOWSUSER-q4s Жыл бұрын
NICELY DONE...❤
@punchline1729 Жыл бұрын
Just found this amazing Python playlist, thanks for your help
@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
@Runbirdie10 ай бұрын
Thank you for breaking everything down into such an easily understandable explanation!
@tourakaianimation77662 жыл бұрын
I am watching your videos during the lectures because the professor is boring. The efforts you put into each video is incredible. Can you also make tutorials about MIPS assembly language?
@BroCodez2 жыл бұрын
I'll take a look at MIPS but I do have a lot of other work to do too :(
@theye292 жыл бұрын
@@BroCodez just a question, do you work as a programmer? if yes, how much do you make? i am thinking in become a senior programmer but im unsure
@Faulty21 Жыл бұрын
Very helpful I appreciate the teaching 🫵🏾💯
@BurhanTosuner Жыл бұрын
helpfull and thankyou
@user-ace96plays Жыл бұрын
NICELY DONE BRO...❤
@haltsmaul.2 жыл бұрын
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.
@BroCodez2 жыл бұрын
that's a good point
@Maaaaaaa7777 Жыл бұрын
@haltsmaul I come from Java as well, there is a way to do that in python?
very logical and useful, making the complex theory understandable!!
@sunny34504 Жыл бұрын
I can't believe that I found an easy way to learn python! I'm so grateful thankss a lott!!
@RAHAT_PY Жыл бұрын
bro it's awsome i admit here new INSAALLAH soon i will finised the playlist💖
@YuliarniHawalid4 күн бұрын
You are Muslim?
@kingmorbcr11722 жыл бұрын
i love this channel
@conailaminhnuaayy7712 Жыл бұрын
Yes
@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
@HsuMonMonThant Жыл бұрын
Thank you for this wonderful video.
@zahraalemi187210 ай бұрын
usefull
@tongtruonghai3312 жыл бұрын
3rd hello!!, all ur vids are good that's i got a improve in programming.
@getone135th11 ай бұрын
thank you for your time and efforts and teaching me this.
@soyozzz2 жыл бұрын
Wow, i'm the first one here. Hello and thank you for the video!
@sprinter59012 жыл бұрын
Wait how?
@munakusik2 жыл бұрын
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
@wmstram1 Жыл бұрын
Watched it. Liked it.
@shaikakhil4h136 Жыл бұрын
Recently I seen ur channel bro I like the way ur teaching bro Tq bro keep doing like this for us bro💕
@mohamad_subhi9 ай бұрын
Perfect. absolutely perfect🤯🤩🤩
@kangyuan908410 ай бұрын
Grateful
@remusonthisaccАй бұрын
Very good tutorials!
@ahmetunaldi76012 ай бұрын
Thank you very much Bro... Eline sağlık...
@krissavagelive9 ай бұрын
Great explanation. Thanks Bro!
@unknowndrharry Жыл бұрын
Your crazy man, so easy to understand, even tough I am from arts background.
@abdulhannan-18 Жыл бұрын
When typecasting an integer to bool, it is always True for any positive or negative number except for. For zero, it is false. #code age = 19 age = bool(age) print(age) True #code age = 0 age = bool(age) print(age) False
@Markos1979 Жыл бұрын
you are the best.
@jhassee2 жыл бұрын
Appreciate you "Bro"
@georgegeorge3954Ай бұрын
Thank You so much for this! Cheers man
@FernandoLuna-f9p Жыл бұрын
wow
@st0kersenpai Жыл бұрын
in my pycharm version when i convert a float to string it just round offs the number like 4.9 becomes 5 and while converting boolean to an integer true becomes 1 and false becomes 0
this chanel is very helpful for me! thanks bro code
@marlor32008 ай бұрын
appreciate your bro
@cozycubix Жыл бұрын
good job , thanks
@joncaldwell47535 ай бұрын
Thank you
@shantanupundir99654 ай бұрын
Done
@Janush___6 ай бұрын
thanks bro
@sagal5109 Жыл бұрын
What program do you use to code? (Btw, I'm beginner :))
@howtocraft2415 Жыл бұрын
I know I am late but in this video he is teaching python
@Abzarad6 ай бұрын
thanks Bro
@Curious_Clover7 ай бұрын
Interesting. I need to know how to do this in Java.
@kalyanm6426 Жыл бұрын
❤
@alanjaf9879 Жыл бұрын
This was usefull, thank you
@CritEnjoyer3 ай бұрын
thank
@officiallypaula510 Жыл бұрын
thanks
@krzysztofbartoszek23862 жыл бұрын
Finally thank you very much
@YGhustler14 ай бұрын
yeyeyey
@bekturasanbekov1979 Жыл бұрын
thx 4 vid bro !
@Istikomah-qr1ij Жыл бұрын
thank you Bro
@chinmaydwivedi07125 ай бұрын
Random Comment already subscribed so i am an Authentic Fellow Bro OK??
@vxmp-cl5kc5 ай бұрын
i love you bro ur the god
@APTsec5 ай бұрын
Hey Girl... I don't care if you are not my type. We can always typecast
@Computer-v5eАй бұрын
Haha good one
@nilbogmax2 жыл бұрын
how does every one else do a course like this. do you use the same file for every single episode or do you save a separate one for each or do something else?
@passportbro904 Жыл бұрын
You must be far in there now, I hope you used seperate files or you may of been confused lol, I'm learning also and love it
@makoblox2 жыл бұрын
yes more python
@manamnice Жыл бұрын
Any git and Linux tutorial?
@user-ace96plays6 ай бұрын
3/106
@tennybabcock51465 ай бұрын
thank you bro code
@muhammadkarangwa4 ай бұрын
I’m on the train of bros
@AntonioVivaldi-si5mrАй бұрын
dont we have double variable like we do in the other languages?
@fozero0 Жыл бұрын
thx bro :D
@realGrantT5 ай бұрын
this dude sounds like chris McLean
@ahmedisonthegoАй бұрын
what about str into int and int into str??
@radinahmadi22118 ай бұрын
I love you
@NguyenHoang-yo5gg2 жыл бұрын
can you do one more Winform course I'm having a problem with it, Bro Code please help me :((
@illubillu699 ай бұрын
my gpa would be a solid ahh 4.0 no no no 1.9
@Poifix Жыл бұрын
So is type casting in Py the same as type conversion in JS?
@AyaanZaheerMusic9 ай бұрын
do you have c or c++ course
@Dex-uq8ff6 ай бұрын
Free algorithm
@Jamdog_official11 ай бұрын
can i use vs code instead
@UIEC_MANESH_RAM-tb1hb2 жыл бұрын
can i please know which country ur from ??
@BobaFett123572 жыл бұрын
Isn’t it obvious he’s an American?
@umcanalsemvidanoyoutube8840 Жыл бұрын
You now how numpy casting works in your C source code?
@Kumaraniket2212 Жыл бұрын
What is GPA full form?
@shabihkazmi1213 Жыл бұрын
grade point average.”
@prizepig2 жыл бұрын
a random comment
@pauldecastro1523Ай бұрын
# Random comment
@Ranxx72 жыл бұрын
Oh
@sainishantbiradar80228 ай бұрын
Random comment
@Mastodonte71 Жыл бұрын
random comment :)
@Xomeyphen2 жыл бұрын
A Random Comment
@nerdface12602 жыл бұрын
"Type casting is easy" Also me: why code no work I spend 5 hours trying to solve and I saw this vid and I was at the problem💀