Python variables ✘

Поділитися
Вставка
  • Опубліковано 11 чер 2024
  • Python variables tutorial example explained
    #python #variables #tutorial
    #variable = a container for a value. Behaves as the value that it contains
    #string = a series of characters
    first_name = "Bro"
    last_name = "Code"
    full_name = first_name +" "+ last_name
    print("Hello "+full_name)
    print(type(first_name))
    #int = a whole integer
    age = 21
    age += 1
    print("Your age is: "+str(age))
    print(type(age))
    #float = a decimal number
    height = 250.5
    print("Your height is: "+str(height)+"cm")
    print(type(height))
    #boolean = True or False
    human = True
    print("Are you a human: "+str(human))
    print(type(human))
    ------------------------------
    Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
    Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
    Free Download / Stream: bit.ly/2JnDfCE
    Music promoted by Audio Library • Up In My Jam (All Of A...
    ------------------------------
  • Наука та технологія

КОМЕНТАРІ • 128

  • @BroCodez
    @BroCodez  3 роки тому +56

    #variable = a container for a value. Behaves as the value that it contains
    #string = a series of characters
    first_name = "Bro"
    last_name = "Code"
    full_name = first_name +" "+ last_name
    print("Hello "+full_name)
    # print(type(first_name))
    #int = a whole integer
    age = 21
    age += 1
    print("Your age is: "+str(age))
    # print(type(age))
    #float = a decimal number
    height = 250.5
    print("Your height is: "+str(height)+"cm")
    # print(type(height))
    #boolean = True or False
    human = True
    print("Are you a human: "+str(human))
    # print(type(human))

  • @sagarmunde5299
    @sagarmunde5299 2 роки тому +4

    Really a great tutorial, its so easy to understand the basics.

  • @sidhunaren
    @sidhunaren 3 роки тому +2

    Your way of explaining things is really great... Thank You...

  • @asifaa5343
    @asifaa5343 2 роки тому +18

    Tip: In boolean true and fals must be spelled with the first letter in caps ( True , False)

  • @youtubevid5330
    @youtubevid5330 3 роки тому +32

    instead of doing
    print("hello "+name)
    do this
    print("hello",name)
    no need to give space after hello, just replace + with , and you're good to go.
    correct me if I am wrong

    • @benszou5449
      @benszou5449 3 роки тому

      it's right

    • @piko_sama7350
      @piko_sama7350 2 роки тому +3

      name = "Piko"
      print(f"Hello {name}")

    • @mongoliandeathworm406
      @mongoliandeathworm406 2 роки тому

      I could be wrong but I think doing print("hello",name) takes up an extra argument as opposed to print("hello"+name)

    • @SekiberiusWelkesh
      @SekiberiusWelkesh 2 роки тому

      You could also do print("Hello "+(first_name)+" "+last_name)

  • @ExpandYourEmpire
    @ExpandYourEmpire 2 роки тому +5

    thanks a bunch for putting this all together!! love the playlist making it more helpful!!

  • @lilachfr
    @lilachfr Рік тому +1

    You simplified it in a great way! thanks!

  • @sisoniykvitaliy7172
    @sisoniykvitaliy7172 2 роки тому

    Your way of explaining things is really great

  • @samanthaossuetta3739
    @samanthaossuetta3739 2 роки тому +1

    very nice!!

  • @spartanranger
    @spartanranger 2 роки тому

    Thanks for guides!

  • @ma.soishob9961
    @ma.soishob9961 2 роки тому

    thanks,your tutorial is very useful to understand

  • @Gojokun00
    @Gojokun00 2 роки тому +1

    Bro Why Haven't I Seen This Channel Before It's A Great Channel

  • @user-cu6fv9gn5z
    @user-cu6fv9gn5z 2 роки тому

    sucha a great content 👌🏼

  • @sayedhusson3876
    @sayedhusson3876 3 роки тому +2

    Cheers man, great tutorial

  • @carmel7411
    @carmel7411 3 роки тому +2

    Love u bro u very good UA-camr

  • @samimerk5313
    @samimerk5313 2 роки тому

    thank you for the explanaion

  • @user-zc3xb1uw1z
    @user-zc3xb1uw1z 2 роки тому

    Thanks for learning me Python.

  • @poleznoykanal8217
    @poleznoykanal8217 3 роки тому

    Very good lesson !

  • @hanuandarjun
    @hanuandarjun 8 місяців тому

    Thanks for explaining

  • @wendypandawa2636
    @wendypandawa2636 2 роки тому

    Thank you for sharing!

  • @chinemeremopara2712
    @chinemeremopara2712 2 роки тому

    I learnt a lot tonight. Thanks a lot

  • @its_m3os
    @its_m3os 2 роки тому +1

    tnx for this video ❤

  • @lisahoegler5870
    @lisahoegler5870 3 роки тому +2

    Great video

  • @kemann3815
    @kemann3815 2 роки тому

    Awesome!

  • @corydoyle1019
    @corydoyle1019 2 роки тому

    Thanks for the help!

  • @ayoubsmahi984
    @ayoubsmahi984 2 роки тому +1

    Thank you very much.

  • @Impgem69
    @Impgem69 2 роки тому +2

    Thank You Bro!

  • @balasubramanisivakumar1089
    @balasubramanisivakumar1089 2 роки тому

    you are really bro for us

  • @Maharddhika
    @Maharddhika 2 роки тому

    This is my comment in order to keep this channel running 👍

  • @yiorgoskatopodis
    @yiorgoskatopodis 2 роки тому

    Excellent!

  • @ahmedelsapagh15
    @ahmedelsapagh15 3 роки тому

    great tutorial

  • @Darkownercute
    @Darkownercute 2 роки тому

    You are very underrated keep going

  • @Animal_Fact_Frenzy
    @Animal_Fact_Frenzy Рік тому

    Thank you very much

  • @kimcris5801
    @kimcris5801 10 місяців тому

    Easy to understand

  • @alolabang
    @alolabang 3 роки тому

    So amazing

  • @mecadawson3234
    @mecadawson3234 9 місяців тому

    nice!

  • @FootballWorld-lg4mu
    @FootballWorld-lg4mu 7 місяців тому

    Thanks bro u helped for my exam thank you so much

  • @elvinjong6074
    @elvinjong6074 Рік тому

    so good

  • @ElectricAvenue123
    @ElectricAvenue123 3 роки тому +2

    Thanks

  • @aryaman4068
    @aryaman4068 2 роки тому

    Best python videos on UA-cam so far

    • @praveenakumarapy4914
      @praveenakumarapy4914 2 роки тому

      iohronpn
      rb4or4
      rn44ri7bqob4
      bo49yn4t
      44typ4nt4t
      t4bpyh4t
      p4n48ytnpy
      tnpbo7ton
      nrpo89n5
      'nt
      ntup5
      ntmunupr
      tgmutntuot
      tnpt

  • @dominicshib3276
    @dominicshib3276 3 роки тому

    thanks for providing the code

  • @dorakake7484
    @dorakake7484 2 роки тому

    Thank You 😊

  • @Zakharov22
    @Zakharov22 Рік тому

    Thanks, Bro

  • @CraftYoutube
    @CraftYoutube 3 роки тому

    awesome!!!!!

  • @tetsuyakuroko8656
    @tetsuyakuroko8656 2 роки тому

    Thanks bro

  • @abdelmoezboubekeur7298
    @abdelmoezboubekeur7298 Рік тому

    thanks bro

  • @shudgununivers7425
    @shudgununivers7425 Рік тому

    Thank you pro

  • @David-mj9st
    @David-mj9st 2 роки тому

    After learn your 8 hours JS tutorial to the 3 hours,I became a fellow!

  • @fucodl138
    @fucodl138 2 роки тому

    Thanks.

  • @timoneri8812
    @timoneri8812 Рік тому

    thank you Bro! 🙏

  • @syah132
    @syah132 3 роки тому

    Thanks bri

  • @callumbartlett1861
    @callumbartlett1861 Рік тому

    thanks mate

  • @gianhat7323
    @gianhat7323 Рік тому

    Nice

  • @ritwikvajpeyi4610
    @ritwikvajpeyi4610 2 роки тому

    thnx it helps a lot

  • @janusztarnowski115
    @janusztarnowski115 2 роки тому

    Many thanks Bro for your work as I wrote in the main "episode, you translate Python issues best on YT. Hope you understand me because my English is rather poor. Thank you

  • @applefactory3139
    @applefactory3139 2 роки тому

    nice

  • @bhumireddyprathyusha33
    @bhumireddyprathyusha33 Рік тому

    🙌🙌

  • @farahdoekoroma159
    @farahdoekoroma159 3 роки тому +1

    Hello Bro Code, I'm messaging not actually to purchase anything but to let you know that I enjoy learning from you. I wish you can mentor me to be a programmer just like you Bro. I have been trying to reach you from all the comments section in your UA-cam videos. Please reply as you like a special gift from God to help me in programming. I have spend like 6 months trying to find a tutor that can help me be a programmer until I accidentally found you. Thanks man for every videos out there on UA-cam. Once again thank you very much for your efforts and resources. Love from Sierra Leone, West Africa.

  • @isaacpaikkatt267
    @isaacpaikkatt267 2 роки тому

    cool

  • @airlanggak5391
    @airlanggak5391 2 роки тому

    thanks!

  • @aries698
    @aries698 4 місяці тому

    The way you explain that you are a human is like what AI would do.

  • @maboulmaaly
    @maboulmaaly 3 роки тому

    thanks

  • @nagasolo4618
    @nagasolo4618 3 роки тому

    Super

  • @thorcoder1
    @thorcoder1 3 роки тому

    sir you are op

  • @JustaFrog1241
    @JustaFrog1241 2 роки тому

    Thank you

    • @praveenakumarapy4914
      @praveenakumarapy4914 2 роки тому

      dwjbkw
      dbbd'wnudbi
      vqikb
      woq
      qnw
      wgbd d
      odn o
      93 yhdt9889e y9
      9y83o
      jowodnwpdq
      w u0q

  • @JorgeOcampoIQ
    @JorgeOcampoIQ Рік тому

    What book do you recommend me to deep more on each topics?

  • @davehug
    @davehug 2 роки тому

    Are you a human:
    Doubt!
    Thanks for the video AI bro

  • @dohuy.felix123
    @dohuy.felix123 2 роки тому +1

    Not good at English but can study well thanks your best teaching

    • @praveenakumarapy4914
      @praveenakumarapy4914 2 роки тому

      f inh8gngnr
      rrnorg
      grnorngr
      rnu0grnrrnur0norrnror
      rpngr
      rnuprr
      upg
      rrnup
      rrnogruo
      eno

  • @devarunkarmakar6298
    @devarunkarmakar6298 Рік тому

    you are the best
    each and every fukin concpt is clear brooooooooooooooo

  • @anuragbandhubajpai
    @anuragbandhubajpai 2 роки тому

    I like python it's easy

  • @geraldocangondo7264
    @geraldocangondo7264 3 роки тому

    Is good

  • @business9854
    @business9854 3 роки тому

    Commenting just so that this video bursts, hopefully

  • @budderrar5751
    @budderrar5751 Рік тому

    noice

  • @masoudargoshi4312
    @masoudargoshi4312 Рік тому

    habibi

  • @reda29100
    @reda29100 Рік тому

    1:30 in addition to single and double quote delimiters ('text' and "text"), you may use triple single and double quotes as well: '''text''' and """text""".
    A thing these two delimiters have that single-character delimiters don't have is, they retain lines within the string, unlike the first, where putting those in different lines:
    my_text = 'text'
    'in a new line'
    is converted by Python to simply concatenated strings:
    'textin a new line', while:
    my_text = '''text
    in a new line'''
    stores the string, which when printed looks like:
    text
    in a new line
    Of course, you can always create a string of joined strings separated by a string (new line character in this case): "first" + "
    second", or "
    ".join(["first", "second", "any other string", ...] where it would concatenate the strings inside the list, putting the object in between (a string of "
    ", i.e., a new line in this case), but that feature is of convenience more than anything.

  • @knightwolf900
    @knightwolf900 2 роки тому +1

    print("your the best bro")

  • @tarikyassa1076
    @tarikyassa1076 2 роки тому

    👍

  • @pramodkoushiktr1895
    @pramodkoushiktr1895 3 роки тому +23

    r u professor of some university? u teach really good. from which country r u?

  • @guilhermenarde8146
    @guilhermenarde8146 Рік тому

    bro

  • @Spacious_GG
    @Spacious_GG 2 роки тому +1

    9:29 , now we know how tall Bro Code is

  • @_sf_editz1870
    @_sf_editz1870 Рік тому

    😄😄

  • @WilliamsEmp
    @WilliamsEmp 2 роки тому +2

    I tried this;
    First_Name = input("What is your first name? ")
    Last_Name = input("What is your last name? ")
    print("Hello", First_Name +" "+ Last_Name)
    age = input("How old are you " + First_Name + "? ")
    print("You are " + str(age) + " years old")
    height = input("What is your height in cm? ")
    print("Your height is " + str(height) + "cm")

  • @user-sh5zv4yf5s
    @user-sh5zv4yf5s 2 роки тому

    Thank you for your support

  • @marxmarx5058
    @marxmarx5058 2 роки тому

    Bro is a legend

  • @brondani_
    @brondani_ 3 роки тому

    finally i feel like i learned something, thank you :D

  • @patrickbanzon7145
    @patrickbanzon7145 Рік тому

    23/JUL/22 7:43pm i was here

  • @fadorn7
    @fadorn7 Рік тому

    please bro code tell me is there any extensions for chrome to run python codes or an extension which has terminal?

  • @Dorelff
    @Dorelff 2 роки тому

  • @rabiaabubakarabdulaziz5194
    @rabiaabubakarabdulaziz5194 Рік тому +1

    Hi Bro Code, what code editor do you use???🤔 i really want to know.

  • @tatsumiogahulkbooster8287
    @tatsumiogahulkbooster8287 Рік тому

    I guess that the new patch may have ****ed up everything. I can't do the run thing unless I force it with run... If u know what I mean "bro"

  • @TehArcy
    @TehArcy 2 роки тому +1

    hm even though I put true is still says false when I ask if I'm human O.o??? spooky

  • @omriu5000
    @omriu5000 2 роки тому

    I tried to pull off a huge variable and see if I can get it done, which I did !!
    print("My height is " +str (height)) +print("Oh then I'm taller than you
    ")

  • @chzzh6634
    @chzzh6634 2 роки тому

    print("Thank you Bro ")

  • @notdumb3182
    @notdumb3182 3 роки тому

    HELLO BRO

  • @cristianwilder3633
    @cristianwilder3633 Рік тому

    the right yk haha

  • @DailyDoseOfTopComment
    @DailyDoseOfTopComment Рік тому

    Perfectly normal height.. 250.5 cm... I reckon im just too abnormally small at 170

  • @stuartYoung559
    @stuartYoung559 2 роки тому

    If you was a girl, indeed i swear must have proposed you.😂.. thanks thanks thanks alot brother .. ❤❤❤❤❤❤

  • @YeahEsCereal
    @YeahEsCereal 2 роки тому

    Hi

  • @Phr8
    @Phr8 2 роки тому

    print("down below")

  • @Sir_Aramaki
    @Sir_Aramaki Рік тому

    IK you are giga chad and you are probably taller then 90% of us but 250 cm is not normal. 8:04. lol but seriously great video