How to Use Lists in Python

Поділитися
Вставка
  • Опубліковано 22 гру 2024

КОМЕНТАРІ •

  • @haopeiyang3443
    @haopeiyang3443 4 роки тому +121

    You are definitely among the best teachers of programming on UA-cam.

  • @gauravjha7136
    @gauravjha7136 4 роки тому +28

    Best tutorial on python3 list I found after so long

  • @woolgathered
    @woolgathered 3 роки тому +7

    Just found this while studying for an exam - super helpful!! Thank you!

  • @tishajohnson3909
    @tishajohnson3909 3 роки тому +8

    Thank you! You making trying to learn and understand this really easy and since I'm on a crash course at my college I need this lol.

  • @DanielFlores-gx7xi
    @DanielFlores-gx7xi 3 місяці тому +1

    Genuinely learning more from this channel then my own professor

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

    wow. thank you so much. its complicated but easy when you understand

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

    Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.

  • @alanm263
    @alanm263 Місяць тому

    Very easy to understand. Thanks a lot Mosh🙏🏿

  • @praveenkumar-fm8up
    @praveenkumar-fm8up 5 років тому +5

    mosh, is there a way for creating multiple indexes in an index itertatively where input of those lists will be given at run time?

  • @qzorn4440
    @qzorn4440 4 роки тому +3

    right to the point with great examples thanks :)

  • @gocodemedia7407
    @gocodemedia7407 6 років тому +3

    Super clear Mosh, well done. I keep learning new stuffs from you everyday.

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

    can u plz tell me what's the editor & the theme? it would be really helpful

  • @incridablekarthi228
    @incridablekarthi228 6 років тому +1

    Just now started the beginner vedio,so far it's pretty good 👌

  • @lasc1991
    @lasc1991 4 роки тому +1

    Congrats man your videos are awesome !!!! thanks.

  • @emonuss
    @emonuss 5 років тому +2

    Would you consider doing a Selenium Automation class with Java?

  • @Aazami-vi4zu
    @Aazami-vi4zu 3 роки тому +2

    Mr mosh your tutorial its very good.
    But i wanna say something.
    In this tutorial you was forgotten to say extend method for adding list to list.

  • @yigitmuhammedduman7796
    @yigitmuhammedduman7796 6 місяців тому

    Great video with great details. Thanks

  • @noluthandonkwanyana4472
    @noluthandonkwanyana4472 7 місяців тому

    Hey. How do you add up numbers in a list in a specific column?

  • @ExpO.O-t9p
    @ExpO.O-t9p 2 роки тому

    your voice is so nice and soothing

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

    What is the program he is using? I love how it shows all the options when he does .append and then it explains them.

    • @RageRacer1985
      @RageRacer1985 2 місяці тому +1

      i think its pycharm.try searching it,ive used it a long time ago

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

    I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me

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

      I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me

  • @miguelbaez-montano2486
    @miguelbaez-montano2486 4 роки тому

    deadass makes it so easy

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

    what is the extension called where Mosh can view the definition behind each function? @14:30

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

      its not an extension just place the cursor on the function or any statements pycharm will give the definitions

  • @stergiosbampakis
    @stergiosbampakis 6 років тому +35

    Mosh I really appreciate your work. But almost all your tutorials are really really basic. I would like to see more advanced things like cloud integration, a complete software deployment or advanced algorithms for real needs in enterprise software

    • @zeinelmokhtar4105
      @zeinelmokhtar4105 5 років тому +6

      print("you're amazing by the way") @@programmingwithmosh

    • @erniethenerd8495
      @erniethenerd8495 10 місяців тому +5

      Looks like the channel is aimed for beginners. His more advanced lessons are behind a pay wall?

  • @sergiutacu7425
    @sergiutacu7425 5 років тому +1

    Can you tell me, why 'remove' is not in the list of the methods?
    thx ( I use also VS Code)

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

    List unpacking was well explained

  • @BuhariIbrahimYusuf
    @BuhariIbrahimYusuf 2 місяці тому

    thank you so much sir
    more grace

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

    Hello! I am currently coding a discord bot, and I have a list full of roles that i want to be used, and i want to use the list as it is, but separate it with 'or'(so it will be - 'command.has_role(list_of_roles)', but i want it to be like 'mod *or* admin,* or* bot'. how do i do that?)

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

    Woa! If the list is too long and you want to find/check an item in the list, what command will you use?

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

    So when I ran the letters = ["a", "b", "c"]
    items = (0, "a")
    index, letter = items
    for index, letter in enumerate (letters):
    print (letter[0], letter[1])
    What I received was error message "Traceback (most recent call last):
    File "./prog.py", line 5, in
    IndexError: string index out of range"
    What did I do wrong?

  • @jeanfernando6956
    @jeanfernando6956 3 роки тому +5

    Muito obrigado, me ajudou demais aqui no meu programa ^^

  • @anatoliistasiukevych4979
    @anatoliistasiukevych4979 7 місяців тому

    hi man, can you share your configuration for vs code

  • @jonyqup
    @jonyqup 4 роки тому +1

    Amazing video!

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

    awesome, mosh

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

    Thank You For Your Excellent Teaching sir

  • @noamcohen1709
    @noamcohen1709 7 місяців тому

    Thanks you saved my exam

  • @gocodemedia7407
    @gocodemedia7407 6 років тому +1

    I just shared your videos now.

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

    how can you change/modify your previous code?

  • @mohammadanarul624
    @mohammadanarul624 5 років тому +1

    Awesome sir

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

    Learned a lot. Thanks

  • @v.r.s.madhumitha2576
    @v.r.s.madhumitha2576 2 роки тому +1

    Hi Mosh! This is Madhu. I have a doubt. Can we add string elements to an empty list?

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

    Could you write the code that uses a list containing three characters and then asks a user to enter a character. The code will then search the list to see if the entered character is in the list or not. If it’s not in the list, then the user is asked to enter a different character. This loop keeps repeating until the user enters a character which IS present in the list.

    • @ExpO.O-t9p
      @ExpO.O-t9p 2 роки тому +2

      list = ["a", "b", "c"]
      char = input("Enter any character")
      while char not in list:
      print("The character is not in list")
      char = input("Please enter any other character
      ::")

    • @ExpO.O-t9p
      @ExpO.O-t9p 2 роки тому

      Here uou go

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

    i love your videos so much

  • @dakshsagar2839
    @dakshsagar2839 6 років тому

    When is the course coming out ?

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

    amazing, thanks bro!

  • @winyourself553
    @winyourself553 5 років тому

    from 10:11 sec *numbers type will be tuple,not list isn't?

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

    Really helpful, thx 😊

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

    Thank you so much. It was really helpful.

  • @ravjotsingh537
    @ravjotsingh537 5 років тому

    a = input("enter the list").split(",")
    print(a)
    print(type(a))
    def negative(b):
    neg = []
    for i in b:
    neg.append(-i)
    return neg
    print(negative(a))
    I am getting an error.
    Traceback (most recent call last):
    File "@t", line 9, in
    print(negative(a))
    File "@t", line 7, in negative
    neg.append(-i)
    TypeError: bad operand type for unary -: 'str'

  • @mastercenex
    @mastercenex 5 років тому +1

    Hey mosh, I tried using the "*other" at (9:20) and got a syntax error. What is wrong here?

    • @aer2648
      @aer2648 5 років тому

      Can you send a link to your code?

  • @alislm01
    @alislm01 6 місяців тому

    Hi, are you from Hamedan originally?

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

    thank you so much

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

    THANKSSSS❤

  • @kazziodex9561
    @kazziodex9561 7 місяців тому

    Hello Mosh. I have a serious question. I've started learning to code, but i am scared by the time i qualify for a job, AI will replace us. Do you think AI will make coding obsolete?

    • @BobbyFischer-iu9ut
      @BobbyFischer-iu9ut 6 місяців тому

      You could learn AI code there’s always gonna be companies that need that

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

    12:00 difficulty here. come back to it

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

    Hi. I created a list called
    numbers = [1,2,3,4,5]. But my command , numbers[0] does not give me 1.

  • @SintayehuSiraye-pf8gh
    @SintayehuSiraye-pf8gh Рік тому

    thanks man

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

    what if i have a list l = [ 'a', 'b', 'c'] and i want to change it to ['a', 'v', 'c'] ? how do i do that, without changing its length ?

    • @mohammadqamaruddin5739
      @mohammadqamaruddin5739 3 місяці тому

      let's say
      list1 = [ 'a', 'b', 'c']
      list1[1] = 'v'
      here 1 is the position where you want to insert your value
      thats it
      remember lists are mutable

  • @suneetbalwada7470
    @suneetbalwada7470 6 років тому

    which IDE u are using?

    • @hakusho04
      @hakusho04 4 роки тому

      @@programmingwithmosh why not Pycharm

  • @jack-wv8jq
    @jack-wv8jq 2 роки тому

    What is mosh using to write this programs in

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

    awesome

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

    do u know Bindu tc miss

  • @adityashinde3864
    @adityashinde3864 6 років тому

    Sir please upload php course.

  • @xxmxxgg2600
    @xxmxxgg2600 16 днів тому

    7:00

  • @AshishSharma-is4ur
    @AshishSharma-is4ur 3 роки тому

    when my list is cleared through clear method, can we retrieve the cleared list!!
    Kindly advice?

  • @rocket_pi
    @rocket_pi 6 років тому

    Is List same as array ?

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

      No, because List it can be store Integer and string with multiple elements. But an Array can accept only integers and Float..
      ua-cam.com/video/wWFR5-pzefQ/v-deo.html

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

    I want "save the changes" as my ringtone

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

    nice

  • @ErkanOkman
    @ErkanOkman 6 років тому +2

    👍👏

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

    hi
    I am starting a python channel from scratch
    can you help me what to do, I published videos, but I don't have any views yet!
    ممنون

  • @rahulchauhan496
    @rahulchauhan496 6 років тому

    Sir I want php courses please upload php courses...

    • @rahulchauhan496
      @rahulchauhan496 6 років тому

      Please sir I request u.......🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇

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

    LSP

  • @allcool27gaming
    @allcool27gaming 4 роки тому +1

    I hate the transitions in this video. I think that I am done watching then I realise that I still have 15 mins to watch

  • @WailEz-h2r
    @WailEz-h2r Рік тому +2

    let me show you

  • @mahmudulhussain5401
    @mahmudulhussain5401 6 років тому

    Sir i need node.js course ..i dont have money

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

    why is your list saying they are 11 items whilst they are 10 items in the chars "hello world"??????

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

      The space between 'hello' and 'world' is also counted

  • @Sam-kd4mo
    @Sam-kd4mo Рік тому

    wow

  • @Feetrex
    @Feetrex 6 років тому

    have u generated more free coupons i need it

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

    🗽

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

    bro why cant he teach me at school. my computing teacher and school is literally shittttt

  • @NANI-rd9tc
    @NANI-rd9tc 3 місяці тому

    Are you Persian?

  • @JohnSmith-hw2ku
    @JohnSmith-hw2ku Рік тому

    testing

  • @Kyanqy_Tarb3r
    @Kyanqy_Tarb3r 5 місяців тому

    can you tell the name of your theme, please🥲