Type casting in Python is easy 💱

  Рет қаралды 134,341

Bro Code

Bro Code

Күн бұрын

Пікірлер: 125
@BroCodez
@BroCodez 2 жыл бұрын
# 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)
@hallilo7166
@hallilo7166 2 жыл бұрын
Hi brocode I love your videos you helped me so much starting with java and we can watch that all for free THX 😊
@Cp_elisha
@Cp_elisha Жыл бұрын
bro what is name of tool you are using it's vscode or what
@balaportejean7015
@balaportejean7015 8 ай бұрын
@@Cp_elishapycharm And he downloaded python online Watch the first video of the series
@joysticksforjesuschrist
@joysticksforjesuschrist 11 ай бұрын
I love how bro almost put his GPA as 4.0 and then backspaced 😂
@Afghanistanfutsalfans
@Afghanistanfutsalfans Жыл бұрын
Outstanding Explanation I have ever watched!
@earth7641
@earth7641 2 жыл бұрын
I glad to see your channel grow and learning program from your channel, being game programmer is always my dream.
@soyozzz
@soyozzz 2 жыл бұрын
Wow, i'm the first one here. Hello and thank you for the video!
@sprinter5901
@sprinter5901 2 жыл бұрын
Wait how?
@joanneosborne2428
@joanneosborne2428 11 ай бұрын
I appreciate your training approach; it's clear, enjoyable, and straightforward. Thank you for keeping it simple and to the point.
@punchline1729
@punchline1729 Жыл бұрын
Just found this amazing Python playlist, thanks for your help
@kingmorbcr1172
@kingmorbcr1172 2 жыл бұрын
i love this channel
@conailaminhnuaayy7712
@conailaminhnuaayy7712 Жыл бұрын
Yes
@MohyDev
@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
@Runbirdie
@Runbirdie 11 ай бұрын
Thank you for breaking everything down into such an easily understandable explanation!
@abdulhannan-18
@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
@user-ace96plays
@user-ace96plays Жыл бұрын
NICELY DONE BRO...❤
@haltsmaul.
@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.
@BroCodez
@BroCodez 2 жыл бұрын
that's a good point
@Maaaaaaa7777
@Maaaaaaa7777 Жыл бұрын
@haltsmaul I come from Java as well, there is a way to do that in python?
@sunny34504
@sunny34504 Жыл бұрын
I can't believe that I found an easy way to learn python! I'm so grateful thankss a lott!!
@tongtruonghai331
@tongtruonghai331 2 жыл бұрын
3rd hello!!, all ur vids are good that's i got a improve in programming.
@脱不完的头发
@脱不完的头发 10 ай бұрын
very logical and useful, making the complex theory understandable!!
@tourakaianimation7766
@tourakaianimation7766 2 жыл бұрын
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?
@BroCodez
@BroCodez 2 жыл бұрын
I'll take a look at MIPS but I do have a lot of other work to do too :(
@theye29
@theye29 2 жыл бұрын
@@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
@WINDOWSUSER-q4s
@WINDOWSUSER-q4s Жыл бұрын
NICELY DONE...❤
@munakusik
@munakusik 2 жыл бұрын
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
@RAHAT_PY
@RAHAT_PY Жыл бұрын
bro it's awsome i admit here new INSAALLAH soon i will finised the playlist💖
@YuliarniHawalid
@YuliarniHawalid Ай бұрын
You are Muslim?
@RAHAT_PY
@RAHAT_PY 18 күн бұрын
@@YuliarniHawalid alhamduLILLAH
@getone135th
@getone135th Жыл бұрын
thank you for your time and efforts and teaching me this.
@st0kersenpai
@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
@Faulty21
@Faulty21 Жыл бұрын
Very helpful I appreciate the teaching 🫵🏾💯
@mohamad_subhi
@mohamad_subhi 10 ай бұрын
Perfect. absolutely perfect🤯🤩🤩
@ahmetunaldi7601
@ahmetunaldi7601 3 ай бұрын
Thank you very much Bro... Eline sağlık...
@shaikakhil4h136
@shaikakhil4h136 Жыл бұрын
Recently I seen ur channel bro I like the way ur teaching bro Tq bro keep doing like this for us bro💕
@EthioMediaCorporation
@EthioMediaCorporation Жыл бұрын
Great explanation
@HsuMonMonThant
@HsuMonMonThant Жыл бұрын
Thank you for this wonderful video.
@remusonthisacc
@remusonthisacc 3 ай бұрын
Very good tutorials!
@zahraalemi1872
@zahraalemi1872 11 ай бұрын
usefull
@abdulhannan-18
@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 True HelloTrue
@mdjhangirislam5237
@mdjhangirislam5237 Жыл бұрын
this chanel is very helpful for me! thanks bro code
@krissavagelive
@krissavagelive 10 ай бұрын
Great explanation. Thanks Bro!
@unknowndrharry
@unknowndrharry Жыл бұрын
Your crazy man, so easy to understand, even tough I am from arts background.
@georgegeorge3954
@georgegeorge3954 2 ай бұрын
Thank You so much for this! Cheers man
@wmstram1
@wmstram1 Жыл бұрын
Watched it. Liked it.
@BurhanTosuner
@BurhanTosuner 2 жыл бұрын
helpfull and thankyou
@kalyanm6426
@kalyanm6426 Жыл бұрын
Nice😂😂
@FernandoLuna-f9p
@FernandoLuna-f9p Жыл бұрын
wow
@Markos1979
@Markos1979 Жыл бұрын
you are the best.
@erdemdemir2852
@erdemdemir2852 7 ай бұрын
random comment because this tutorial is great
@jhassee
@jhassee 2 жыл бұрын
Appreciate you "Bro"
@kangyuan9084
@kangyuan9084 11 ай бұрын
Grateful
@AmirhosseinAZB
@AmirhosseinAZB Жыл бұрын
very helpful bro!
@AntonioVivaldi-si5mr
@AntonioVivaldi-si5mr 2 ай бұрын
dont we have double variable like we do in the other languages?
@cozycubix
@cozycubix Жыл бұрын
good job , thanks
@tixer9786
@tixer9786 Жыл бұрын
Thanks
@joncaldwell4753
@joncaldwell4753 7 ай бұрын
Thank you
@sagal5109
@sagal5109 Жыл бұрын
What program do you use to code? (Btw, I'm beginner :))
@howtocraft2415
@howtocraft2415 Жыл бұрын
I know I am late but in this video he is teaching python
@cgulis1734
@cgulis1734 2 ай бұрын
youre great
@alanjaf9879
@alanjaf9879 Жыл бұрын
This was usefull, thank you
@marlor3200
@marlor3200 10 ай бұрын
appreciate your bro
@kalyanm6426
@kalyanm6426 Жыл бұрын
@bekturasanbekov1979
@bekturasanbekov1979 Жыл бұрын
thx 4 vid bro !
@im_not_molhem
@im_not_molhem Жыл бұрын
name = “Bro Code” age = 22 rating = 100.0 useful = True
@shantanupundir9965
@shantanupundir9965 6 ай бұрын
Done
@Janush___
@Janush___ 7 ай бұрын
thanks bro
@Curious_Clover
@Curious_Clover 8 ай бұрын
Interesting. I need to know how to do this in Java.
@Abzarad
@Abzarad 7 ай бұрын
thanks Bro
@krzysztofbartoszek2386
@krzysztofbartoszek2386 2 жыл бұрын
Finally thank you very much
@abdulhannan-18
@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
@nilbogmax
@nilbogmax 2 жыл бұрын
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
@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
@YGhustler1
@YGhustler1 5 ай бұрын
yeyeyey
@abdulhannan-18
@abdulhannan-18 Жыл бұрын
student = True print(student) print(type(student)) student = str(student) print(student) print(type(student)) True True
@CritEnjoyer
@CritEnjoyer 5 ай бұрын
thank
@vxmp-cl5kc
@vxmp-cl5kc 6 ай бұрын
i love you bro ur the god
@NguyenHoang-yo5gg
@NguyenHoang-yo5gg 2 жыл бұрын
can you do one more Winform course I'm having a problem with it, Bro Code please help me :((
@abdulhannan-18
@abdulhannan-18 Жыл бұрын
gpa = 1.9 gpa1 = int(gpa) gpa2 = (gpa%1) gpa3 = gpa1 + gpa2 print(gpa3) 1.9
@ahmedisonthego
@ahmedisonthego 3 ай бұрын
what about str into int and int into str??
@chinmaydwivedi0712
@chinmaydwivedi0712 6 ай бұрын
Random Comment already subscribed so i am an Authentic Fellow Bro OK??
@officiallypaula510
@officiallypaula510 Жыл бұрын
thanks
@Istikomah-qr1ij
@Istikomah-qr1ij 2 жыл бұрын
thank you Bro
@Poifix
@Poifix Жыл бұрын
So is type casting in Py the same as type conversion in JS?
@manamnice
@manamnice Жыл бұрын
Any git and Linux tutorial?
@AyaanZaheerMusic
@AyaanZaheerMusic 10 ай бұрын
do you have c or c++ course
@tennybabcock5146
@tennybabcock5146 7 ай бұрын
thank you bro code
@Jamdog_official
@Jamdog_official Жыл бұрын
can i use vs code instead
@GraysonLovesHisMama
@GraysonLovesHisMama 16 күн бұрын
Your songs always make me want to mute my phone, thanks for the motivation
@fozero0
@fozero0 Жыл бұрын
thx bro :D
@muhammadkarangwa
@muhammadkarangwa 6 ай бұрын
I’m on the train of bros
@makoblox
@makoblox 2 жыл бұрын
yes more python
@umcanalsemvidanoyoutube8840
@umcanalsemvidanoyoutube8840 Жыл бұрын
You now how numpy casting works in your C source code?
@Kumaraniket2212
@Kumaraniket2212 Жыл бұрын
What is GPA full form?
@shabihkazmi1213
@shabihkazmi1213 Жыл бұрын
grade point average.”
@radinahmadi2211
@radinahmadi2211 9 ай бұрын
I love you
@user-ace96plays
@user-ace96plays 7 ай бұрын
3/106
@illubillu69
@illubillu69 10 ай бұрын
my gpa would be a solid ahh 4.0 no no no 1.9
@UIEC_MANESH_RAM-tb1hb
@UIEC_MANESH_RAM-tb1hb 2 жыл бұрын
can i please know which country ur from ??
@BobaFett12357
@BobaFett12357 2 жыл бұрын
Isn’t it obvious he’s an American?
@realGrantT
@realGrantT 6 ай бұрын
this dude sounds like chris McLean
@Dex-uq8ff
@Dex-uq8ff 7 ай бұрын
Free algorithm
@Ranxx7
@Ranxx7 2 жыл бұрын
Oh
@APTsec
@APTsec 6 ай бұрын
Hey Girl... I don't care if you are not my type. We can always typecast
@Computer-v5e
@Computer-v5e 2 ай бұрын
Haha good one
@pauldecastro1523
@pauldecastro1523 2 ай бұрын
# Random comment
@prizepig
@prizepig 2 жыл бұрын
a random comment
@nerdface1260
@nerdface1260 2 жыл бұрын
"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💀
@Mastodonte71
@Mastodonte71 Жыл бұрын
random comment :)
@sainishantbiradar8022
@sainishantbiradar8022 9 ай бұрын
Random comment
@project_imperium
@project_imperium 17 күн бұрын
just a random comment
@Xomeyphen
@Xomeyphen 2 жыл бұрын
A Random Comment
@kalvinistheb0mb
@kalvinistheb0mb Жыл бұрын
random comment
@daydarasensei12
@daydarasensei12 2 жыл бұрын
RANDOM COMMENT( ̄▽ ̄)
User input in Python is easy + exercises ⌨️
13:04
Bro Code
Рет қаралды 118 М.
Learn Python VARIABLES in 10 minutes! ❎
10:16
Bro Code
Рет қаралды 40 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Math in Python is easy + exercises 📐
13:51
Bro Code
Рет қаралды 122 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 402 М.
Python variables for beginners ❎
13:31
Bro Code
Рет қаралды 203 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 243 М.
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 127 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 672 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 172 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 155 М.
If statements in Python are easy (if, elif, else) 🤔
8:21
Bro Code
Рет қаралды 163 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 339 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН