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

  Рет қаралды 77,327

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 151
@glorynwogu7905
@glorynwogu7905 Жыл бұрын
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 Жыл бұрын
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)
@sravanijemmi3821
@sravanijemmi3821 2 ай бұрын
@@Calculator4world -48 0
@Hello_______World
@Hello_______World Жыл бұрын
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)
@twilighthg8660
@twilighthg8660 18 күн бұрын
Timestamps (Powered by Merlin AI) 00:04 - Understanding *args and **kwargs for handling variable arguments in Python. 02:32 - Understanding arbitrary positional and keyword arguments in Python. 05:06 - Understanding arbitrary positional arguments in Python functions. 07:50 - Understanding tuples and their immutability in Python functions. 10:18 - Understanding how to pass arguments using *args and **kwargs in Python. 13:00 - Understanding the order of arguments in functions using *args and **kwargs. 15:54 - Understanding *args and **kwargs in Python functions. 18:03 - Understanding *args and **kwargs for flexible function arguments. 20:21 - Understanding *args and **kwargs in Python functions.**Timestamps (Powered by Merlin AI) 00:04 - Understanding *args and **kwargs for handling variable arguments in Python. 02:32 - Understanding arbitrary positional and keyword arguments in Python. 05:06 - Understanding arbitrary positional arguments in Python functions. 07:50 - Understanding tuples and their immutability in Python functions. 10:18 - Understanding how to pass arguments using *args and **kwargs in Python. 13:00 - Understanding the order of arguments in functions using *args and **kwargs. 15:54 - Understanding *args and **kwargs in Python functions. 18:03 - Understanding *args and **kwargs for flexible function arguments. 20:21 - Understanding *args and **kwargs in Python functions.**
@aishwaryagandhi1878
@aishwaryagandhi1878 Жыл бұрын
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
@vaishnavinegi4461
@vaishnavinegi4461 7 ай бұрын
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 Жыл бұрын
def multiply(*integers): c=1 print(integers) for i in integers: c=c*i return c total=multiply (2,3,4) print(total)
@smartifire
@smartifire 6 ай бұрын
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)
@AjinkyaDarkase
@AjinkyaDarkase Ай бұрын
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)
@rukhsar9602
@rukhsar9602 Жыл бұрын
Following from 2017 to till now and sure always 30/09/2023 Thank you mam for this python series
@Nothing-78646
@Nothing-78646 3 ай бұрын
do you get a job?
@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)
@Abhishek_5460
@Abhishek_5460 Жыл бұрын
Oo bhai ye kinmi awesome h 🥰
@chukwuemekamadusha-q1g
@chukwuemekamadusha-q1g 17 күн бұрын
def multiply(*arg): number=1 for i in arg: number *= i print(number) multiply(2,3,-6,8) multiply(2,5,8,9,0,6)
@amargora9478
@amargora9478 Жыл бұрын
Anyone from insta 😅😅
@graduate_the_gamer5541
@graduate_the_gamer5541 Жыл бұрын
🙋🙋🙋
@StephenBhanu
@StephenBhanu Жыл бұрын
Me
@sohelmohammad13
@sohelmohammad13 Жыл бұрын
😜
@darshanpriye91
@darshanpriye91 Жыл бұрын
😂
@vishal0323
@vishal0323 Жыл бұрын
Harr koi teri tarah batameez nahi hota
@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)
@mjvlogs3250
@mjvlogs3250 Жыл бұрын
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.
@Er.Priyanshu_Chauhan
@Er.Priyanshu_Chauhan Жыл бұрын
Joining in this journey from today Love from Awadh Provinces (Uttar Pradesh)
@tayyabusman8159
@tayyabusman8159 8 ай бұрын
def multiply(*numbers): total = 1 for i in numbers: total = i * total print(total) multiply(3, 4, 5, 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.
@elifcliff
@elifcliff 11 ай бұрын
This is the most beginner-friendly explanation. Thanks!
@anjalileo9385
@anjalileo9385 Жыл бұрын
def mul(*args): c=1 for i in args: c*=i print(c) mul(12,44,-99,4) mul(1,2,3)
@beneelohimhub
@beneelohimhub Жыл бұрын
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.
@harshadshinde5226
@harshadshinde5226 11 ай бұрын
def multiply(*numbers): multiplication=1 for i in numbers: multiplication=multiplication*i print(multiplication) multiply(3,3) multiply(2,2,2,2,2)
@hartdemerchant9806
@hartdemerchant9806 Жыл бұрын
def multiply(*args): Mul = 1 # initialize mul to 1 for i in args: mul = mul * i Print(mul)
@VardhanSmtSpcl
@VardhanSmtSpcl 3 ай бұрын
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
@adityapathak1278
@adityapathak1278 Ай бұрын
Def multiply(*num): x=1 For i in num: x=x*I Print(f"result: {x})
@Sagar.Sarkar
@Sagar.Sarkar Жыл бұрын
love😘😘😍😍
@trushantjagdish4275
@trushantjagdish4275 5 ай бұрын
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)
@nishantgoyal6657
@nishantgoyal6657 2 ай бұрын
very well explained
@tharungarugu9188
@tharungarugu9188 Жыл бұрын
def mutiply(*mul): C=0 for i in mul: C*=I print(i) multiply(1,-2,4,-5)
@pathakfitness9341
@pathakfitness9341 Жыл бұрын
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 ❤
@cooldady1
@cooldady1 5 ай бұрын
well explained.... very nice...
@bigman4766
@bigman4766 Жыл бұрын
This 🐍 course is 🔥.thanks Jennny.waiting for the whole playlist and being certified in the language
@BharathKumarThota-eg8jc
@BharathKumarThota-eg8jc Жыл бұрын
Thanks Jenny, great job. Your explanation is superbly good for understanding.
@vinodkumar-rk5mt
@vinodkumar-rk5mt Жыл бұрын
def python_classes(lecturer): if lecturer =="jenny": print(watch videos) else : print(close youtube)
@goodness_james
@goodness_james Жыл бұрын
Jenny to the rescue!😍❤️
@hrushikeshkarthikeyanpamu6039
@hrushikeshkarthikeyanpamu6039 6 ай бұрын
#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
@sriramalli5542
@sriramalli5542 Жыл бұрын
Hlo mam iam following your video from last 5days it's amazing 🤩😍😍🤩😍
@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
@Yourcodingfriendsaruk
@Yourcodingfriendsaruk 11 ай бұрын
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
@oyeaman9163
@oyeaman9163 Жыл бұрын
Ak din mai zarur apka lecture dyan sa sunu ga 💕😂
@sravanisravs779
@sravanisravs779 Жыл бұрын
Tq mam keep on going👍
@wrapfreekzz
@wrapfreekzz Жыл бұрын
Mam first I was waiting for this video 😰😰 Your great
@kdpr007
@kdpr007 5 ай бұрын
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)?
@guru.k_
@guru.k_ Жыл бұрын
which computer glass good for eyes.
@zafrannawaz22
@zafrannawaz22 Ай бұрын
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 kzbin.info/www/bejne/immne4ullJ6gjLMfeature=shared
@rajenderchauhan4403
@rajenderchauhan4403 Жыл бұрын
Ma'am 🎉
@ankkitseth4152
@ankkitseth4152 Жыл бұрын
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 ❤😍
@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 Жыл бұрын
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..😢
@adamyagogreen
@adamyagogreen Жыл бұрын
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 Жыл бұрын
Maim plz make next videos on chatgpt or AI with the help of python❤
@ishwarsukheja
@ishwarsukheja Жыл бұрын
Love the way you teach ❤
@unluckyfellow-vc4le
@unluckyfellow-vc4le Жыл бұрын
Madam next time class cheypinapudu live peytandi❤
@real_creepy
@real_creepy 11 ай бұрын
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?
@sureshchoudhary840
@sureshchoudhary840 Жыл бұрын
Aap KZbin s jayada s insta p famous ho gye ho 😂😂😂😂
@VenkatMopidevi-dt7mo
@VenkatMopidevi-dt7mo 3 ай бұрын
mam how can i give output function on multiply numbers
@RitwikPolasa
@RitwikPolasa 7 ай бұрын
Mam, what is the name of font you use in this pycharm
@Manosrisathes
@Manosrisathes 10 ай бұрын
Mam how to comandout multi lines with #..shortcut key
@manthinireshmasri8276
@manthinireshmasri8276 Жыл бұрын
Mam please do upload web development course too includes html,css,Java script....I would be more helpful to us
@born2victory944
@born2victory944 Жыл бұрын
Waiting for full tutorial 🚩❤️
@Punchucomedy
@Punchucomedy Жыл бұрын
Mam java course karwa do please 🙏
@satyasharma2913
@satyasharma2913 Жыл бұрын
❤❤❤❤i from banking sector but why i here idk 😂
@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)
@dhf_anupamaparameswaran6594
@dhf_anupamaparameswaran6594 Жыл бұрын
I am new to your channel
@Zarbetauheed
@Zarbetauheed Жыл бұрын
Mam I want to learn Oracle database what should I do?
@LoneWolF45236
@LoneWolF45236 10 ай бұрын
What about Arbitrary Positional Department? mam?
@garao69
@garao69 Жыл бұрын
Waiting for Tomorrow's hindi videos ❤️‍🔥
@rahul._.2221
@rahul._.2221 Жыл бұрын
def multiplication(*num): Mul=1 For I in num: Mul=mul*i Print(Mul) Multiplication(5,6,7)
@onxane5624
@onxane5624 Жыл бұрын
Mai toh arts wala hu 😋
@entertainmentindiask218
@entertainmentindiask218 Жыл бұрын
python ke kitne lectures m ye pura ho jayega , i am form transportation engineering background but need to study this..
@tridevthakur5434
@tridevthakur5434 Жыл бұрын
Mai to Commerce ka Student Hu 😍
@sabuhere
@sabuhere Жыл бұрын
😂😂😂😂
@rupayadav256
@rupayadav256 Жыл бұрын
Simple and amazing concept explanation. It was point to Point. Thank you. Looking for more conceptual videos(oops)
@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!!
@bunnybhaigaming1084
@bunnybhaigaming1084 Жыл бұрын
She is cute 🥰
@santhoshk2722
@santhoshk2722 Жыл бұрын
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
@udayjkc
@udayjkc Жыл бұрын
Please push the code to git and provide a link too
@venkatyeruva6037
@venkatyeruva6037 Жыл бұрын
I am ca student I don't know why I was watching this video You was attractive don't distract me
@veteran067
@veteran067 Жыл бұрын
Python series??
@wrapfreekzz
@wrapfreekzz Жыл бұрын
Waiting for more python videos
@ShivaMGupta-go1on
@ShivaMGupta-go1on Жыл бұрын
pahli bar coding me mza nhi aa rha 😅
@Vinayyoutubechannel143
@Vinayyoutubechannel143 Жыл бұрын
I like you
@mohitsoni7157
@mohitsoni7157 Жыл бұрын
Wait one sec. I am an art student why I am here ?😢
@pavankumaronlineworld8694
@pavankumaronlineworld8694 Жыл бұрын
Mujhe samaj kuchh nhi aata Lekin m poori vdo dekhta hu.
@zenitsu1696
@zenitsu1696 Жыл бұрын
Hame sab samajh aa raha hau 😏
@gxb4877
@gxb4877 Жыл бұрын
I am a Mechanical engineering professional but... Cmon we all know why we're here 😁.. To learn about args and kwargs 🧐
@arshadtv7744
@arshadtv7744 Жыл бұрын
Mam why u stopped providing notes😢😢
@Prathamx.
@Prathamx. Жыл бұрын
Bhai mai toh hu hi 10th mai😂
@ankitsirscience8901
@ankitsirscience8901 Жыл бұрын
Ma'am ap gk pdha do na 🙈🙈🙈
@anishmanandhar1203
@anishmanandhar1203 Жыл бұрын
Hello Jenny maam excellent content , plz also upload the code
@vishalaaryan29
@vishalaaryan29 Жыл бұрын
RVCJ se aaye?😂
@AjeyuduAddanki
@AjeyuduAddanki Жыл бұрын
I have a doubt
@krishnashis.
@krishnashis. Жыл бұрын
I wanna be a coder
@riteshrana01
@riteshrana01 Жыл бұрын
Ma'am please give notes
@AnimeAssociation-u1t
@AnimeAssociation-u1t Жыл бұрын
Insta boys Assemble
@AjeyuduAddanki
@AjeyuduAddanki Жыл бұрын
Hi mam
@Abhishek-ur3zs
@Abhishek-ur3zs Жыл бұрын
Mummy mujhe bho java padhna h
@madara8999
@madara8999 Жыл бұрын
She was doing great until she opened PyCharm in light mode😐
@SrinivascharyAdisharlapally
@SrinivascharyAdisharlapally 6 ай бұрын
No , she like only that light vision. she only tell.
@ConfusedIdeal
@ConfusedIdeal Жыл бұрын
Your English Is Weak Mam Exactly Like Me. 😂😜
@brandedchora8643
@brandedchora8643 Жыл бұрын
Aap itna acha dikhte ho so cute 🥳 mere dost se shadi karlo
@djosjsjw
@djosjsjw Жыл бұрын
𝙼𝚊𝚒 𝚊𝚙𝚔𝚊 𝚍𝚘𝚜𝚝 𝚋𝚗𝚗𝚊 chahuga🤣🤣
Types of Arguments in Python | Python Tutorials for Beginners #lec61
21:11
Jenny's Lectures CS IT
Рет қаралды 103 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 56 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 38 МЛН
Python *ARGS & **KWARGS are awesome! 📦
14:54
Bro Code
Рет қаралды 86 М.
Nested Dictionaries in Python | Python Tutorials for Beginners #lec69
22:33
Jenny's Lectures CS IT
Рет қаралды 43 М.
*Args and **Kwargs in Python
3:49
b001
Рет қаралды 290 М.
File Handling in Python | Python Tutorials for Beginners #lec95
45:32
Jenny's Lectures CS IT
Рет қаралды 111 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
P_32 List in Python and List Functions | Python Tutorials for Beginners
29:01
Jenny's Lectures CS IT
Рет қаралды 186 М.
Modules in Python | Python Tutorials for Beginners #lec97
25:28
Jenny's Lectures CS IT
Рет қаралды 79 М.
local and Global Scope in Python | Python Tutorials for Beginners #lec78
14:34
Jenny's Lectures CS IT
Рет қаралды 49 М.
Python for Beginners - Learn Coding with Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 19 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 56 МЛН