User Input For List | Python Programs

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2024

ความคิดเห็น • 135

  • @salahuddinkhan8120
    @salahuddinkhan8120 3 ปีที่แล้ว +7

    The Easiest and the most clear explaination I've seen on youtube. Tysm

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว +1

      Thank you 😊

    • @nmtamil4774
      @nmtamil4774 3 หลายเดือนก่อน

      Please do comeback mam​@@AmulsAcademy

  • @3delhelal
    @3delhelal 4 ปีที่แล้ว +18

    I really want to thank you, I am from Egypt, and I am not good at understanding most English accents
    and I wanted to understand a certain part of a module, and I did not see such an easy way of explaining or a clear voice like you, thank you Amulya ♥️

    • @AmulsAcademy
      @AmulsAcademy  4 ปีที่แล้ว +3

      You're very welcome! :)

  • @ranadeepsaha9696
    @ranadeepsaha9696 3 ปีที่แล้ว +1

    Good morning Maam. Thanks for your modules. Loop was not cleared to me before your explanation. I am getting confident in the loop. You are doing a great job. I got stuck with the below when inputting any string showing errors.
    import ast
    list =[]
    while True:
    a = ast.literal_eval(input('Enter the items'))
    list.append(a)
    y = input('Would you like to continue entering numbers? press any key for yes and n for no')
    if y=='n':
    break
    print(list)
    Thank you very much for your lessons.

  • @maliknagi1064
    @maliknagi1064 ปีที่แล้ว

    Thank you very much for this amazing tutorial now I can do some cool stuff after fully understanding the while and for loops... again Thank you very much.

  • @kumodsharma7235
    @kumodsharma7235 2 ปีที่แล้ว

    Wow , Thanku mam for this beautiful explanation all doubts is cleared in a single tutorial video

  • @xNatheeeGamer
    @xNatheeeGamer 2 ปีที่แล้ว

    Thanks Amulya, you're a legend!

  • @nicolledenipitiya7567
    @nicolledenipitiya7567 3 ปีที่แล้ว +1

    It really helped me
    Thank you so much !!!

  • @AmitSingh-ty5hw
    @AmitSingh-ty5hw 3 ปีที่แล้ว +1

    amazing video

  • @RaviKumar-cr7qc
    @RaviKumar-cr7qc 3 ปีที่แล้ว +1

    good teaching and easly understandig, in for loop in empty list

  • @NachoNC320
    @NachoNC320 3 ปีที่แล้ว

    Muchas gracias por ayudarme Amulya si no era por ti, seguiria renegando con las listas. Te agradezco de corazon.

  • @AnkitSingh-vj6dz
    @AnkitSingh-vj6dz 3 ปีที่แล้ว +1

    Thank you ma'am

  • @GhostDcuo
    @GhostDcuo 3 ปีที่แล้ว +1

    Hey, great tutorial thanks for the upload. I've been struggling with this all day but i finally get it lol, and thanks again.

  • @pranavh_shaurya_tej
    @pranavh_shaurya_tej 3 ปีที่แล้ว

    I got headache to make a list by user. I found the solution by this video. Thank you❤️

  • @joyprokash4013
    @joyprokash4013 ปีที่แล้ว

    Thank you so much. Please provide us Data Science courses also mam.

  • @drakslayer6972
    @drakslayer6972 3 ปีที่แล้ว +2

    Thank you for your effort and clear explanation. This helps me so much at python

  • @Kitchen24000
    @Kitchen24000 4 ปีที่แล้ว +2

    Amulya shetty good one again

  • @theunknownWitsom
    @theunknownWitsom 3 ปีที่แล้ว

    Thank you for the help! Very concise video explanation

  • @alimanager
    @alimanager 3 ปีที่แล้ว

    It indeed helped me in understanding control on user inputs. Thanks.

  • @paramasivaanand
    @paramasivaanand 2 ปีที่แล้ว

    Thanks for the great explanation. It really helped me on understanding the full flow.

  • @MRCRAZY-wm4ln
    @MRCRAZY-wm4ln 3 ปีที่แล้ว +1

    thanks maam for such a nice lesson....
    congo for 101k....
    keep making such videos, thank you once again

  • @htbgamer4548
    @htbgamer4548 3 ปีที่แล้ว +1

    hello from us, thank u:)

  • @parthasarathejay.7957
    @parthasarathejay.7957 3 ปีที่แล้ว +2

    Thank you so much, sis. Saved my life!

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      😊😊😊

    • @priyanshusharma2144
      @priyanshusharma2144 3 ปีที่แล้ว

      How she saved your life 🤔🤔

    • @parthasarathejay.7957
      @parthasarathejay.7957 3 ปีที่แล้ว +1

      @@priyanshusharma2144 Was nearing a deadline, and was panicking since everything was unfamiliar. Amulya explained everything in a crystal clear way, which made me picked up everything in minutes. I recommend you watch her tutorials if you have any interest. Really a lifesaver.

    • @priyanshusharma2144
      @priyanshusharma2144 3 ปีที่แล้ว

      Ohk but how she helps you, menas now what are you doing have get your placement

    • @parthasarathejay.7957
      @parthasarathejay.7957 3 ปีที่แล้ว

      @@priyanshusharma2144 I didn't quite get you. 😅

  • @apurbadebnath4342
    @apurbadebnath4342 2 ปีที่แล้ว

    Very good explanation

  • @oodlesofawe
    @oodlesofawe 3 ปีที่แล้ว +1

    Thanks a lot!!!

  • @azadnagar3929
    @azadnagar3929 3 ปีที่แล้ว +1

    Really nice voice and helpful concept

  • @hazyhaul5720
    @hazyhaul5720 3 ปีที่แล้ว +1

    You are the best sweat heart... Thanks

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว +1

      Thank you 😊

    • @hazyhaul5720
      @hazyhaul5720 3 ปีที่แล้ว

      Your explain well, you can help summarise GUI and py to exe

  • @myerwerl
    @myerwerl 3 ปีที่แล้ว +1

    What if i dont want to know how many, because i want to print the length of the imputs from the user? For instace, add a number, do you want to add more (y/n). Then it will loop back. If i press n, then i will have a series of fucntions.

  • @subasreev5189
    @subasreev5189 3 ปีที่แล้ว +1

    It really helped me
    Thank you so much

  • @RealRadaiZabala
    @RealRadaiZabala 2 หลายเดือนก่อน

    Thanks, amulyia.

  • @RuhulAmin-hg6lj
    @RuhulAmin-hg6lj 3 ปีที่แล้ว +1

    this class is helpful
    but we can do it in another way
    a=input("enter your numbers")
    s=a.split()
    print(s)
    i think it will be helpful too

  • @francismannion7075
    @francismannion7075 6 หลายเดือนก่อน

    That was great , thank you.

  • @J35513gORaYa
    @J35513gORaYa 3 ปีที่แล้ว +1

    How do u do this with a space bar ends input , when i do this loop it adds a number to a list once [4] then the rest show up like 4

  • @zakjay6748
    @zakjay6748 3 ปีที่แล้ว +1

    Hiii!, love it. what if i want different commands from same user_input symbol? like if user_input press "yes" it will give one clue, if user input give "yes" for the second time then it will give 2nd clue in the print. How can I do that? I am stuck :(

  • @CouldbeSample
    @CouldbeSample 3 ปีที่แล้ว +1

    hug thanks from Brazil dud

  • @ajkoh
    @ajkoh 2 ปีที่แล้ว

    Hey, if i want the user to have the choice to remove something from the list aswell, how do i do that?

  • @31.pratikkaranjule35
    @31.pratikkaranjule35 2 ปีที่แล้ว

    while executing some programs on online compiler why it shows EOFError.While same program is running on another compiler.Why this could happen?

  • @kabeerbasha326
    @kabeerbasha326 4 ปีที่แล้ว +1

    Amulya when will be the python new batch starts

  • @feziwezimu931
    @feziwezimu931 3 ปีที่แล้ว +1

    thanks, mam for the lesson but how do you
    use that code then add it up?

  • @SJ-ic4yr
    @SJ-ic4yr 4 ปีที่แล้ว +1

    n=int(input(“Enter number of elements : “))
    Lst=[int(input(“Enter element : “)) for x in range(0,n)]
    Will this work?

    • @irenechelsia1160
      @irenechelsia1160 4 ปีที่แล้ว +1

      Instead you can write like this!!!
      n=int(input("Enter number of elements : "))
      Lst=[n for x in range(0,n)]
      print(Lst)

    • @AmulsAcademy
      @AmulsAcademy  4 ปีที่แล้ว

      Yes you can :)

    • @AmulsAcademy
      @AmulsAcademy  4 ปีที่แล้ว +1

      @irene if you want different input in list then you need to use input function inside the list.

    • @SJ-ic4yr
      @SJ-ic4yr 4 ปีที่แล้ว

      @@AmulsAcademy yup

    • @SJ-ic4yr
      @SJ-ic4yr 4 ปีที่แล้ว

      @@AmulsAcademy this will make a list of first n-1 integers

  • @ibrahimgadli2583
    @ibrahimgadli2583 2 ปีที่แล้ว

    I got this part but if I want to create n number of list for example: pls enter the number of list you want:2
    Enter the length : 4
    A b c d
    [A b c d]
    Enter the length : 4
    B c d e
    [B c d e]
    How to make it like this
    Simply I want to ask how to create more than 1 list using user input

  • @apekshitdhoke
    @apekshitdhoke 3 ปีที่แล้ว

    Let's suppose list has 2 only two options. I want user to select either option 1 or 2 as input and then proceed with my program to gather more import input from user then how should I go about it?

  • @MiaTheDreamer
    @MiaTheDreamer 3 ปีที่แล้ว

    Thanks loads..

  • @DhruvGoyaI
    @DhruvGoyaI 2 ปีที่แล้ว +1

    I am typing lst = []
    it is giving syntax error please tell why ?

  • @sumitchandora1183
    @sumitchandora1183 3 ปีที่แล้ว +1

    Best videos :)

  • @stoggy3451
    @stoggy3451 2 ปีที่แล้ว

    Yeah, but what do I do if the program isn't supposed to ask for a value on how many times it is supposed to run. I know I would use a while loop obviously but how do I know when to break the loop!

  • @prageetgames
    @prageetgames 2 ปีที่แล้ว

    what if i have to find the maximum value from a multiple user inputs what will be the code?

  • @pinkytrivedi5665
    @pinkytrivedi5665 4 ปีที่แล้ว +2

    We can use eval in input :)

  • @mamillasrihari5791
    @mamillasrihari5791 ปีที่แล้ว

    How to give heterogeneous input for list in single line from user end?

  • @keerthanat6649
    @keerthanat6649 3 ปีที่แล้ว

    If the input already exist or not what will be the programme

  • @sahukarisidhivinayaka2093
    @sahukarisidhivinayaka2093 2 ปีที่แล้ว

    But in this type of user input all the elements in the list will be of same type..........but according to definition of list it can contain the elements of multiple types......how can we take input in which our list contain elements of multiple types

  • @urbanevolutionlifestyle6209
    @urbanevolutionlifestyle6209 2 ปีที่แล้ว

    Thank you

  • @nikhil_polani
    @nikhil_polani 3 ปีที่แล้ว

    suppose if we want to give the inputs as a list format 10 20 22 like this in the output.....how to write that.?
    for example we need to take 3 input values in a list format at the time of execution
    a=10 20 22
    b=51 21 23

    • @vasudhas3648
      @vasudhas3648 3 ปีที่แล้ว

      Hey did u got code for u r qstion .i too searching for that .did u found it share it pls

  • @sivasu07
    @sivasu07 4 ปีที่แล้ว +1

    Asusual 👌👍

  • @prathapmadduri3616
    @prathapmadduri3616 3 ปีที่แล้ว

    Hi mam
    I found that 'ProgramsAndMe' is a channel that channel copying ur videos mam so be care about it mam

  • @tquadtechno7472
    @tquadtechno7472 6 หลายเดือนก่อน

    COMMENDABLE. Could not be better

  • @theme6865
    @theme6865 ปีที่แล้ว

    thank u❤❤❤❤❤❤

  • @Ramesh-rp6jq
    @Ramesh-rp6jq 4 ปีที่แล้ว +1

    Hi , In user input I provided 5 elements but in the output its giving 3 elements only.

    • @AmulsAcademy
      @AmulsAcademy  4 ปีที่แล้ว

      Give me the program please :)

    • @Ramesh-rp6jq
      @Ramesh-rp6jq 4 ปีที่แล้ว

      @@AmulsAcademy list1=[ ]
      while True:
      element=int(input ('Enter element'))
      list1.append(element)
      Choice=input('want to stop?if yes press yes')
      If choice=='yes'
      Break
      Print('list of elements ' , list1)

    • @Ramesh-rp6jq
      @Ramesh-rp6jq 4 ปีที่แล้ว

      @@AmulsAcademy it's working

    • @nehakamath8321
      @nehakamath8321 3 ปีที่แล้ว

      @@Ramesh-rp6jq @Amulya's Academy
      import ast
      list1=[ ]
      while True:
      element=ast.literal_eval(input ('Enter element: '))
      list1.append(element)
      choice=input('want to stop? enter yes: ')
      if choice =='yes':
      break
      print('list of elements ' , list1)
      For the above code ,its taking a floating point value and integer value but its not taking a character . Can you tell me if I have made a mistake?

    • @nehakamath8321
      @nehakamath8321 3 ปีที่แล้ว

      I got my mistake I was not entering the character in between the " " (for example : " ant ")

  • @arpit8720
    @arpit8720 ปีที่แล้ว

  • @universal4334
    @universal4334 4 ปีที่แล้ว +1

    Do the same for indepth about lambda , map

  • @Venaxr
    @Venaxr 3 ปีที่แล้ว

    Hello i need to make a program that is supposed to do this:
    For the first question, your program should randomly select a planet, display its name, and ask the user for its position in the solar system, with respect to the Sun.
    Example: Correct answer
    Note: This example illustrates how your program should work. The output of your program will depend on the randomly-selected planet and the user’s input, so it will be different each time you execute it.
    The program displays a prompt and waits for keyboard input What is the position of Earth, relative to the Sun?
    The user types in a reply 3
    The program displays a message that the user’s answer is correct That is correct.
    Earth is planet number 3 from the Sun.
    Example: Incorrect answer
    Note: This example illustrates how your program should work. The output of your program will depend on the randomly-selected planet and the user’s input, so it will be different each time you execute it.
    The program displays a prompt and waits for keyboard input What is the position of Mars, relative to the Sun?
    The user types in a reply 5
    The program displays a message that the user’s answer is incorrect, along with the correct answer That is not correct.
    Mars is planet number 4 from the Sun.
    Please can you help me

    • @Venaxr
      @Venaxr 3 ปีที่แล้ว

      I am also very bad at python and very new

    • @Venaxr
      @Venaxr 3 ปีที่แล้ว +1

      import random
      from random import randint
      planets = ["Mercury", "Venus", "Earth","Mars", "Jupiter", "Saturn","Uranus", "Neptune"]
      value = random.choice(planets)
      print("What is the position of",value +",relative to the sun?")
      planet = input()
      index = randint(0,7)
      planet = planets[index]
      print("That is correct.",planet +" is planet number",randint +"from the sun")
      THis what I put

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      Execute this program and see what you will get 😊

    • @Venaxr
      @Venaxr 3 ปีที่แล้ว

      @@AmulsAcademy thanks miss!

  • @pranjalchakraborty3880
    @pranjalchakraborty3880 3 ปีที่แล้ว

    How can we take user input of char, float, int values simultaneously??

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      You need to use eval function or literal_eval function from ast module :)

    • @simplesingh5334
      @simplesingh5334 3 ปีที่แล้ว

      @@AmulsAcademy how does it work?
      Can you please explain alil?

  • @shivanshugour4975
    @shivanshugour4975 3 ปีที่แล้ว

    for chuck yen times ok mam got it

  • @hrithikjudhun7344
    @hrithikjudhun7344 3 ปีที่แล้ว +1

    What if i want to insert decimal values in the list? 😅

  • @paramasivaanand
    @paramasivaanand 2 ปีที่แล้ว

    for some reason eval is not working in jupyter. Is anyone else tried eval in jupyter?

  • @acidicunicorn8884
    @acidicunicorn8884 3 ปีที่แล้ว +1

    How to add n elements in list without pressing enter n times?

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      You can enter values using space then you can separate that 😊

    • @acidicunicorn8884
      @acidicunicorn8884 3 ปีที่แล้ว

      @@AmulsAcademy i can't press space n times

  • @apurbadebnath4342
    @apurbadebnath4342 2 ปีที่แล้ว

    You are boss

  • @sakthisurya4522
    @sakthisurya4522 3 ปีที่แล้ว +1

    How find duplicate in this method

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      Do you want to find duplicate values in list ?

  • @sikandarkumar7563
    @sikandarkumar7563 4 ปีที่แล้ว +1

    Can we use map function for this list

  • @maciekpaciarski9343
    @maciekpaciarski9343 4 ปีที่แล้ว +1

    when continuation of doubly linked list ?

  • @selvanm2872
    @selvanm2872 4 ปีที่แล้ว +1

    👍

  • @MDHabib-wx2zu
    @MDHabib-wx2zu 2 ปีที่แล้ว

    you can say nicely....

  • @samsamson1414
    @samsamson1414 3 ปีที่แล้ว +1

    what about for nexted list of two dimension pls

    • @AmulsAcademy
      @AmulsAcademy  3 ปีที่แล้ว

      I will try to make videos on that :)

  • @iamgonnastudy2009
    @iamgonnastudy2009 2 ปีที่แล้ว

    😃👍👍👍👍👍👍👍👍

  • @harshitpatni9483
    @harshitpatni9483 4 ปีที่แล้ว

    I am not first

  • @hassaan1670
    @hassaan1670 2 ปีที่แล้ว

    yen lmao sry

  • @abdi_pie7266
    @abdi_pie7266 4 ปีที่แล้ว

    not showing face

  • @075_mmshahriarshakil2
    @075_mmshahriarshakil2 3 ปีที่แล้ว +1

    Are you girl or boy? I am confused 😁

  • @YeshwaVlog
    @YeshwaVlog 2 ปีที่แล้ว

    thank you