Comments - Python | Lesson 2 (Free Coding Bootcamp)

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 63

  • @nottoklumzy
    @nottoklumzy 2 года назад +5

    When I try alt+/ it removes the whole code

    • @CodewithVincent
      @CodewithVincent  2 года назад +10

      Sorry I'm on a MAC, but I think I made a mistake on the video. Try CTRL + /

    • @loopybrogaming1149
      @loopybrogaming1149 2 года назад +4

      @@CodewithVincent ye its CTRL

    • @matthewmullett2634
      @matthewmullett2634 Год назад

      @@loopybrogaming1149 yep...I found the same thing.

  • @anasusman4839
    @anasusman4839 2 года назад +8

    For windows I had to press “Ctrl+/“ to comment out multiple lines

  • @ineedtostudy7546
    @ineedtostudy7546 2 года назад +7

    From someone who comes from a non-tech background but would like to break in here, thank you! These videos are really helpful!

  • @rukiyaab7912
    @rukiyaab7912 2 года назад +2

    I know I’m late but I’m here

  • @dcmetig3369
    @dcmetig3369 Год назад +2

    thanks Vicent. please do you have any social media handle.

  • @matthewmullett2634
    @matthewmullett2634 Год назад +1

    When I do the three single quotes, the first two I type in put two single quotes, but then the third one puts in four more for a total of six. Do you know why this is happening?

    • @CodewithVincent
      @CodewithVincent  Год назад

      The editor tries to be smart and thinks you want an opening ' and closing '. Just erase one of them and you should be good

  • @John-PaulMagyari
    @John-PaulMagyari Год назад +2

    Day 4 LETS GO!

  • @winstondepaiva1401
    @winstondepaiva1401 2 года назад +3

    Heyy i saw you on tiktok and I've just been fascinated about this
    Thanks for this its really fun and simple and u make it sound easier thsn my 9th grade teacher but ee didnt use python tho
    Anyway if i may ask what programs would you recomend i download on my not so high grade laptop so i can use python if that makes sense sorry thanks again

    • @CodewithVincent
      @CodewithVincent  2 года назад

      You don't need to download anything to start this series. Everything is done on a website :)

  • @CodewithVincent
    @CodewithVincent  2 года назад +3

    What did you learn today?

  • @1xferno
    @1xferno Год назад +2

    god damn this is easy so far

  • @kora7223
    @kora7223 2 года назад +1

    the ,,, it dose not work in my code
    ?????

    • @CodewithVincent
      @CodewithVincent  2 года назад

      It's the single quote key, not the comma key:
      '''

  • @zachcecchetti1659
    @zachcecchetti1659 2 года назад +3

    Is there a good rule of thumb to know when you should be leaving comments in your code in a professional setting?

    • @CodewithVincent
      @CodewithVincent  2 года назад +4

      In general, it depends on company.
      I've worked at companies that hate comments and companies that love comments.
      I'd say the goal is to write code so good that comments aren't needed. The only time I leave comments in my code is for documentation, like leaving some business context. For example, I did this specific instruction because of a business rule. Then I would link to documentation / a discussion thread / a code review post. This way, if someone later on stumbles upon my code, they can always check those links to understand the reasoning behind it.
      Hopefully, this answered your question :)

  • @TiasiaHandy
    @TiasiaHandy Год назад +1

    Ughh my comment didn't go red, I'm using this symbol three times " ' " right?

    • @CodewithVincent
      @CodewithVincent  Год назад

      Want to share your code? Correct it's 3 single quotes
      '''
      Hello
      '''

    • @anabelchisom7870
      @anabelchisom7870 6 месяцев назад

      @@CodewithVincent I taught three single quote is used to block comment not to share code

  • @senaneletembe7832
    @senaneletembe7832 Год назад +2

    Thank you so much Vince, I'm trying to break in tech and these videos are helping a lot.

  • @QuangPham-nr4vl
    @QuangPham-nr4vl 2 года назад +2

    It is Ctrl + / to comment out the code in Windows

  • @shegregonmyheffley
    @shegregonmyheffley 2 года назад +1

    my hashtag is green??

  • @ZoroIsgood
    @ZoroIsgood Год назад +1

    Bro i am going to do software engineering because people say that future will work on software ' machine , AI and all so I have so much scope in future Thank you Vincent for teaching me very easily and quickly .

  • @daisnrelfarsson1237
    @daisnrelfarsson1237 2 года назад +2

    I have an Icelandic keyboard, and for the life of me I could not find out how to comment multiple lines at once, I tried every ALT, CTRL, AltGr button and it didn't seem to work. Do you recommend that people use a US english keyboard?

    • @CodewithVincent
      @CodewithVincent  2 года назад

      Uhhh I think ctrl + / should do the trick. Maybe you need to configure it on your computer, not sure tbh

    • @DanteKali
      @DanteKali 2 года назад +1

      i am sitting on it for an hour now. Did you figure it out? I have no idea

    • @CodewithVincent
      @CodewithVincent  2 года назад

      @@DanteKali not familiar with how icelanding keyboards work. Can you guys re-map some keys on the keyboard?
      To make a comment you need the / key
      To comment out multiple lines, you need to highlight the lines and do
      CTRL + /

  • @txsy-system
    @txsy-system Год назад +1

    Great lesson Moving on to the next. Thanks Vinx

  • @laureenelisabeth2321
    @laureenelisabeth2321 2 года назад +1

    Hi, I have a french macbook keyboard (azerty), and the function command / doesn't work for me, any idea why ?

    • @CodewithVincent
      @CodewithVincent  2 года назад

      You should be able to check the settings on your keyboard and figure out which key is the /

  • @loopybrogaming1149
    @loopybrogaming1149 2 года назад +1

    at 1:07 it says to do ALT + / to put #s on all of the lines for Windows, but when i do that it adds a little comment bubble instead. Then i tried CTRL + / and thats when it put #s in front of all the lines.

    • @CodewithVincent
      @CodewithVincent  2 года назад +1

      Yeah my bad I got the wrong key :( I don't use windows

  • @mcclainjohnson9495
    @mcclainjohnson9495 5 месяцев назад

    Hi Vincent,Am new to ya channel
    Could ya please teach me how to code🙏

    • @CodewithVincent
      @CodewithVincent  5 месяцев назад +1

      Yeah! Watch the videos series! You'll learn lots ☺️

  • @matthewmullett2634
    @matthewmullett2634 Год назад +1

    These videos are fantastic! Thank you for making the programming process make sense!

  • @from_embers_to_greatness
    @from_embers_to_greatness 2 года назад +1

    I took a very intro to python class and they never taught us the block comments, what a cool trick

    • @CodewithVincent
      @CodewithVincent  2 года назад +1

      Glad I was able to teach you something new :)

  • @Bluefire800
    @Bluefire800 2 года назад +1

    do you know why my single quotation marks populate more than 1 at a time when i try to do 3 of them? thank you for the short video formats btw

    • @CodewithVincent
      @CodewithVincent  2 года назад

      Yeah I don't know if there's a workaround, I have that issue too, but let me know if you find out

  • @porrasmc.benrickb.6792
    @porrasmc.benrickb.6792 2 года назад +1

    u make things so easy, thanks man. But i have one question, how do i undo something in replit?

  • @ttitus5416
    @ttitus5416 2 года назад +1

    I never thought about comments as a way to debug, except when I was being lazy and didn't want to lose my play code to try the next line but it still hadn't clicked that I was using commenting as a tool for debugging, thank-you will not dread using comments as a tool so much next time.
    .
    Believe it or not it gets confusing to me when you should use them and I thought do I really want to write notes in my code so yes, I need to get in the habit. I am experimenting with JavaScript right now still a little confused on the commenting symbols there, but I will research it better now that I understand how useful they can be in any language.

    • @CodewithVincent
      @CodewithVincent  2 года назад +1

      Damn you have great commentary! Please continue these, it helps me understand whether people are perceiving the content correctly!
      For JavaScript you use // to comment
      And /* code wrapped in here */ for block comment.
      We will cover JavaScript soon 👀

    • @ttitus5416
      @ttitus5416 2 года назад +2

      @@CodewithVincent Thank-you I will try.

  • @sandyvuong4730
    @sandyvuong4730 2 года назад +1

    Do you provide 1 on 1 coding mentoring?