*args and **kwargs in Python | Python Tutorials for Beginners

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

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

  • @glorynwogu7905
    @glorynwogu7905 11 месяцев назад +13

    Jenny is very good at explaining any concept to a beginner. This video helped me understand very well what the concepts mean before I went ahead to see more advanced videos.

  • @Calculator4world
    @Calculator4world Год назад +36

    def multiply(*args):
    c=1
    for i in args:
    c=c*i
    print(f"The multiplication of the given numbers is {c}")
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)

  • @AjinkyaDarkase
    @AjinkyaDarkase 26 дней назад

    def multiply(*args):
    c = 1
    for i in args:
    c = c * i
    print(c)
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)

  • @ManishaLohani-ve8rl
    @ManishaLohani-ve8rl Месяц назад

    def multiply(*numbers):
    c=1
    for i in numbers:
    c=c*i
    print(f"the product is {c}")
    multiply(2,3,-4,5)
    multiply(4,3,5,6,7,8)

  • @Hello_______World
    @Hello_______World Год назад +16

    def multiply(*args):
    mul=1
    for nums in args:
    mul=mul*nums
    print("Multiplication of elements",mul)
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)

  • @vaishnavinegi4461
    @vaishnavinegi4461 6 месяцев назад +1

    def multiply(*numbers):
    answer = 1
    for i in numbers:
    answer*=i
    print(f"answer is {answer}")
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)

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

    def multiply(*integers):
    c=1
    print(integers)
    for i in integers:
    c=c*i
    return c
    total=multiply (2,3,4)
    print(total)

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

    Ma'am your lectures are helpful. Thankyou ma'am.
    *Input*
    def multiply(*numbers):
    product=1
    for i in numbers:
    product=product*i
    print(f"Result = {product}")
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)
    *Output*
    Result = - 288
    Result = 0

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

    def mul(*args):
    c=1
    for i in args:
    c*=i
    print(c)
    mul(12,44,-99,4)
    mul(1,2,3)

  • @adityapathak1278
    @adityapathak1278 24 дня назад

    Def multiply(*num):
    x=1
    For i in num:
    x=x*I
    Print(f"result: {x})

  • @tayyabusman8159
    @tayyabusman8159 7 месяцев назад

    def multiply(*numbers):
    total = 1
    for i in numbers:
    total = i * total
    print(total)
    multiply(3, 4, 5, 2)

  • @rukhsar9602
    @rukhsar9602 Год назад +3

    Following from 2017 to till now and sure always
    30/09/2023
    Thank you mam for this python series

  • @VardhanSmtSpcl
    @VardhanSmtSpcl 2 месяца назад

    def multiply(*numbers):
    c = 1
    for i in numbers:
    c *= i
    print(c)
    multiply(2, 3, -6, 8)
    multiply(2, 5, 8, 9, 0, 6) ANSWER = -288, 0

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

    It was really amezing lecture, got everything because of you mam.
    Answer code of that question
    def mul(*args):
    c=1
    for i in args:
    c *= i
    print("Multiplication of numbers is ",c)
    mul(2,3,-8)
    mul(2,5,8,9)

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

    def multiply(*args):
    c=1
    for i in args:
    c *= i
    print(f"Value of c: {c}")
    multiply(2,3,-6,8)
    multiply(2,5,8,0,6)

  • @harshadshinde5226
    @harshadshinde5226 10 месяцев назад

    def multiply(*numbers):
    multiplication=1
    for i in numbers:
    multiplication=multiplication*i
    print(multiplication)
    multiply(3,3)
    multiply(2,2,2,2,2)

  • @-SakuraNoHana-
    @-SakuraNoHana- Год назад

    def multiply(*multiply):
    s=1
    for w in multiply:
    s=s*w
    print(f"Product is {s}.")
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)
    output:
    Product is -288.
    Product is 0.

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

    def multiply(*args):
    c=1
    for i in args:
    c=c*i
    print("Multiply is {}".format(c))
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)

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

    Crystal Clear Concept Thank you Very Much
    And Ma'am want to add on in between I lost and focused on your smile 😂😂😂
    Then again re-watched for **kwrgs part.
    You are simply a beauty with a brain.

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

    def mutiply(*mul):
    C=0
    for i in mul:
    C*=I
    print(i)
    multiply(1,-2,4,-5)

  • @trushantjagdish4275
    @trushantjagdish4275 4 месяца назад

    def Multiple _numbers(*args):
    C=1
    for numbers in args:
    C*=numbers
    print(f"Multiplication of numbers is {C}")
    Multiple _numbers(2,3,-6,8)
    Multiple _numbers(2,5,8,9,0,6)

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

    def multiply(*args):
    Mul = 1 # initialize mul to 1
    for i in args:
    mul = mul * i
    Print(mul)

  • @Er.Priyanshu_Chauhan
    @Er.Priyanshu_Chauhan Год назад +1

    Joining in this journey from today
    Love from Awadh Provinces (Uttar Pradesh)

  • @amargora9478
    @amargora9478 Год назад +156

    Anyone from insta 😅😅

  • @vinodkumar-rk5mt
    @vinodkumar-rk5mt Год назад +1

    def python_classes(lecturer):
    if lecturer =="jenny":
    print(watch videos)
    else :
    print(close youtube)

  • @elifcliff
    @elifcliff 10 месяцев назад

    This is the most beginner-friendly explanation. Thanks!

  • @bigman4766
    @bigman4766 Год назад +9

    This 🐍 course is 🔥.thanks Jennny.waiting for the whole playlist and being certified in the language

  • @BharathKumarThota-eg8jc
    @BharathKumarThota-eg8jc Год назад +3

    Thanks Jenny, great job. Your explanation is superbly good for understanding.

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

    def multiply(*args):
    value = 1
    for i in args:
    value *= i
    print(f ' MULTIPLICATION is {value} ' )
    multiply (2,3,-6,8)
    multiply(2,5,8,9,0,6)
    ANSWER IS : -->>MULTIPLICATION IS -288
    MULTIPLICATION IS 0

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

    Mam mene first time aapke insta pe reel dekhi bhut achi thi or mene turnt jakar you tube per search kiya aap bhut cute ho ❤

  • @nishantgoyal6657
    @nishantgoyal6657 Месяц назад

    very well explained

  • @ankkitseth4152
    @ankkitseth4152 Год назад +3

    Just want to learn python by following a playlist......... fortunately found this playlist....but I felt sad when I saw that there is already 60+ videos which I have to complete 😢......but I completed it within 9 days with doing practical and projects also .....now I'm ready to watch new video just after uploading......😁
    Thankyou so much mam for providing this type of lecture series..
    Love from Jharkhand ❤😍

  • @beneelohimhub
    @beneelohimhub Год назад +3

    FOR MULTIPLYING VARIABLE NUMBER OF ARGUMENTS
    1. declare a function with the *args(arbitrary positional argument).
    2. set a variable, says mul to 1 (mul = 1).
    3. using a for loop to access each of the individual argument from the arbitraty positional argument.
    4. multiply the current value of the variable mul and save the result back to the variable (mul *= argument)
    5. print the variable mul
    6. call the function and pass in variable number of arguments each time to test the function.

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

    Hlo mam iam following your video from last 5days it's amazing 🤩😍😍🤩😍

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

    #3.arbitray or variable length arg
    # "*" only accept arbitary pos. arg. not keyword arg.
    #code starts here
    def multiply(*numbers): #arbitray arg. are provided by( * variable _name) , "*" will take len(variable) and stores it as tuplpe i.e; (1,2,3,4).
    mul=1 # This 'mul' is local to the 'multiply' function
    for i in numbers:
    mul*=i
    i+=1
    print("mul of numbers is", mul) # Print the result here
    a=list(map(int,input("enter the numbers seperated by comma:").split(','))) # Split the input by comma
    multiply(*a) # Call the 'multiply' function to calculate and print the result

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

    Oo bhai ye kinmi awesome h 🥰

  • @Yourcodingfriendsaruk
    @Yourcodingfriendsaruk 10 месяцев назад

    thank you so much mam pls continue mam and pls dont stop putiing the videos in youtube pls mam without your lectures i am nothing

  • @puttsjh
    @puttsjh 4 месяца назад

    well explained.... very nice...

  • @kdpr007
    @kdpr007 4 месяца назад

    Thank you for the fantastic lecture.
    One quick question, is the **kwargs also immutable similar to *args (as this is converted to a tuple when fed into the function definition)?

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

    Ma'am humko kuch smjh m to aata nhi......but aap bahut achhi lagti hain .....iss liye Sara class attend krte hain

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

    Mam I want C++ full course... But you upload some videos only 😢... How can I learn complete course... I don't like to watch another channel... Why because I'm totally addicted to your way explanation... So please full fill the C++ course.. Please..😢

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

    Ak din mai zarur apka lecture dyan sa sunu ga 💕😂

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

    Mam first
    I was waiting for this video 😰😰
    Your great

  • @Sagar.Sarkar
    @Sagar.Sarkar Год назад +4

    love😘😘😍😍

  • @guru.k_
    @guru.k_ Год назад +1

    which computer glass good for eyes.

  • @salamabu1135
    @salamabu1135 10 месяцев назад

    i used your video to pass a c++ exam and here i am again after school to learn and pass my career in python
    you are ever green!!

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

    Jenny to the rescue!😍❤️

  • @real_creepy
    @real_creepy 10 месяцев назад

    since * takes multiple values in the form of tuple can't we just simple use sum() function to perform addition operation
    of those values instead of using loop?

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

    def multiply(*multi):
    m=1
    for i in multi:
    m=m*i
    print("Multiplication of elements=",m)
    multiply(2,3,-6,8)
    multiply(2,5,8,9,0,6)
    Output= Multiplication of elements= -288 & 0

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

    Maim plz make next videos on chatgpt or AI with the help of python❤

  • @unluckyfellow-vc4le
    @unluckyfellow-vc4le Год назад +1

    Madam next time class cheypinapudu live peytandi❤

  • @rahul._.2221
    @rahul._.2221 Год назад

    def multiplication(*num):
    Mul=1
    For I in num:
    Mul=mul*i
    Print(Mul)
    Multiplication(5,6,7)

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

    Tq mam keep on going👍

  • @LoneWolF45236
    @LoneWolF45236 9 месяцев назад

    What about Arbitrary Positional Department? mam?

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

    def multiply(*numbers) :
    c=1
    for i in numbers:
    c=c*i
    print(f"multiplication is {c}")
    multiply(2, 3,-6, 8)
    multiply(2, 5,8,9,0,6)

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

    Mam please do upload web development course too includes html,css,Java script....I would be more helpful to us

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

    Simple and amazing concept explanation. It was point to Point. Thank you. Looking for more conceptual videos(oops)

  • @VenkatMopidevi-dt7mo
    @VenkatMopidevi-dt7mo 3 месяца назад

    mam how can i give output function on multiply numbers

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

    Mam I want to learn Oracle database what should I do?

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

    Ma'am 🎉

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

    I am ca student I don't know why I was watching this video
    You was attractive don't distract me

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

    Love the way you teach ❤

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

    ❤❤❤❤i from banking sector but why i here idk 😂

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

    Waiting for Tomorrow's hindi videos ❤️‍🔥

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

    I am new to your channel

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

    tomorrow is my python lab internal, today u have uploaded this video. thank you madam jenny

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

      Brooo nice joke mam no colleges from last 10 days holidays

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

      @@sriramalli5542 helo brother, I don't know which colleges are holiday from last 10 days. But I'm from karnataka here colleges are not holidays

  • @Manosrisathes
    @Manosrisathes 9 месяцев назад

    Mam how to comandout multi lines with #..shortcut key

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

    Mai to Commerce ka Student Hu 😍

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

      😂😂😂😂

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

    python ke kitne lectures m ye pura ho jayega , i am form transportation engineering background but need to study this..

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

    Please push the code to git and provide a link too

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

    Mam java course karwa do please 🙏

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

    Waiting for full tutorial 🚩❤️

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

    Aap RUclips s jayada s insta p famous ho gye ho 😂😂😂😂

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

    Mam, what is the name of font you use in this pycharm

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

    I am a Mechanical engineering professional but... Cmon we all know why we're here 😁.. To learn about args and kwargs 🧐

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

    Mujhe samaj kuchh nhi aata
    Lekin m poori vdo dekhta hu.

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

      Hame sab samajh aa raha hau 😏

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

    Python series??

  • @ShivaMGupta-go1on
    @ShivaMGupta-go1on Год назад +1

    pahli bar coding me mza nhi aa rha 😅

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

    Mai toh arts wala hu 😋

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

    Hello Jenny maam excellent content , plz also upload the code

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

    I have a doubt

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

    Waiting for more python videos

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

    Mam why u stopped providing notes😢😢

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

    Wait one sec. I am an art student why I am here ?😢

  • @zafrannawaz22
    @zafrannawaz22 28 дней назад

    What are args and kwargs
    Args are the positional arguments
    Kwargs are the keyword arguments
    Both can be used with functions
    How to use args and kwargs
    Use args with the *args syntax
    Use kwargs with the **kwargs syntax
    You can use args and kwargs together
    ruclips.net/video/T8DJXo_9mVQ/видео.htmlfeature=shared

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

    Ma'am please give notes

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

    She is cute 🥰

  • @krishnashis.
    @krishnashis. Год назад

    I wanna be a coder

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

    Ma'am ap gk pdha do na 🙈🙈🙈

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

    RVCJ se aaye?😂

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

    Hi mam

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

    I don't enjoy studying Audit
    Mam, Please teach Audit also
    If you will teach I will be able understand easily
    I am learning coding because of you else I belong to commerce

  • @Prathamx.
    @Prathamx. Год назад

    Bhai mai toh hu hi 10th mai😂

  • @Abhishek-ur3zs
    @Abhishek-ur3zs Год назад

    Mummy mujhe bho java padhna h

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

    I like you

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

    She was doing great until she opened PyCharm in light mode😐

  • @AnimeAssociation-u1t
    @AnimeAssociation-u1t Год назад

    Insta boys Assemble

  • @ConfusedIdeal
    @ConfusedIdeal Год назад +5

    Your English Is Weak Mam Exactly Like Me. 😂😜

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

    Any one from insta

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

    Aap itna acha dikhte ho so cute 🥳 mere dost se shadi karlo

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

      𝙼𝚊𝚒 𝚊𝚙𝚔𝚊 𝚍𝚘𝚜𝚝 𝚋𝚗𝚗𝚊 chahuga🤣🤣