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

  Рет қаралды 63,832

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Жыл бұрын

In this lecture we will learn *args and **kwargs arguments in Python:
- Arbitrary Positional Arguments
- Arbitrary Keyword argument
- *args vs **kwargs with program
Best Python Tutorials for Beginners: • Python - Basic to Advance
*********************************************
Connect & Contact Me:
Jenny's Lectures HINDI: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
C++ Tutorials for beginners: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
#python #pythonprogramming #pythonforbeginners #arguments #jennyslectures

Пікірлер: 138
@glorynwogu7905
@glorynwogu7905 8 ай бұрын
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 9 ай бұрын
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)
@BharathKumarThota-eg8jc
@BharathKumarThota-eg8jc 11 ай бұрын
Thanks Jenny, great job. Your explanation is superbly good for understanding.
@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)
@rukhsar9602
@rukhsar9602 10 ай бұрын
Following from 2017 to till now and sure always 30/09/2023 Thank you mam for this python series
@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
@smartifire
@smartifire Ай бұрын
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)
@elifcliff
@elifcliff 7 ай бұрын
This is the most beginner-friendly explanation. Thanks!
@Abhishek_5460
@Abhishek_5460 Жыл бұрын
Oo bhai ye kinmi awesome h 🥰
@bigman4766
@bigman4766 Жыл бұрын
This 🐍 course is 🔥.thanks Jennny.waiting for the whole playlist and being certified in the language
@sriramalli5542
@sriramalli5542 Жыл бұрын
Hlo mam iam following your video from last 5days it's amazing 🤩😍😍🤩😍
@sravanisravs779
@sravanisravs779 Жыл бұрын
Tq mam keep on going👍
@mjvlogs3250
@mjvlogs3250 10 ай бұрын
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.
@puttsjh
@puttsjh 24 күн бұрын
well explained.... very nice...
@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
@Er.Priyanshu_Chauhan
@Er.Priyanshu_Chauhan Жыл бұрын
Joining in this journey from today Love from Awadh Provinces (Uttar Pradesh)
@wrapfreekzz
@wrapfreekzz Жыл бұрын
Mam first I was waiting for this video 😰😰 Your great
@guru.k_
@guru.k_ Жыл бұрын
which computer glass good for eyes.
@vaishnavinegi4461
@vaishnavinegi4461 2 ай бұрын
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 11 ай бұрын
def multiply(*integers): c=1 print(integers) for i in integers: c=c*i return c total=multiply (2,3,4) print(total)
@kdpr007
@kdpr007 Ай бұрын
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)?
@Sagar.Sarkar
@Sagar.Sarkar Жыл бұрын
love😘😘😍😍
@real_creepy
@real_creepy 6 ай бұрын
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?
@goodness_james
@goodness_james 11 ай бұрын
Jenny to the rescue!😍❤️
@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 ❤
@Zarbetauheed
@Zarbetauheed Жыл бұрын
Mam I want to learn Oracle database what should I do?
@ishwarsukheja
@ishwarsukheja Жыл бұрын
Love the way you teach ❤
@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)
@Yourcodingfriendsaruk
@Yourcodingfriendsaruk 7 ай бұрын
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
@Manosrisathes
@Manosrisathes 6 ай бұрын
Mam how to comandout multi lines with #..shortcut key
@mblcryptotech4109
@mblcryptotech4109 Жыл бұрын
Maim plz make next videos on chatgpt or AI with the help of python❤
@tayyabusman8159
@tayyabusman8159 3 ай бұрын
def multiply(*numbers): total = 1 for i in numbers: total = i * total print(total) multiply(3, 4, 5, 2)
@RitwikPolasa
@RitwikPolasa 2 ай бұрын
Mam, what is the name of font you use in this pycharm
@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..😢
@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 ❤😍
@entertainmentindiask218
@entertainmentindiask218 Жыл бұрын
python ke kitne lectures m ye pura ho jayega , i am form transportation engineering background but need to study this..
@rajenderchauhan4403
@rajenderchauhan4403 Жыл бұрын
Ma'am 🎉
@jahnavikalluru4681
@jahnavikalluru4681 8 ай бұрын
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)
@saqlainanwar3700
@saqlainanwar3700 11 ай бұрын
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)
@oyeaman9163
@oyeaman9163 Жыл бұрын
Ak din mai zarur apka lecture dyan sa sunu ga 💕😂
@anjalileo9385
@anjalileo9385 11 ай бұрын
def mul(*args): c=1 for i in args: c*=i print(c) mul(12,44,-99,4) mul(1,2,3)
@vinodkumar-rk5mt
@vinodkumar-rk5mt Жыл бұрын
def python_classes(lecturer): if lecturer =="jenny": print(watch videos) else : print(close youtube)
@LoneWolF45236
@LoneWolF45236 5 ай бұрын
What about Arbitrary Positional Department? mam?
@dhf_anupamaparameswaran6594
@dhf_anupamaparameswaran6594 Жыл бұрын
I am new to your channel
@tharungarugu9188
@tharungarugu9188 10 ай бұрын
def mutiply(*mul): C=0 for i in mul: C*=I print(i) multiply(1,-2,4,-5)
@hartdemerchant9806
@hartdemerchant9806 9 ай бұрын
def multiply(*args): Mul = 1 # initialize mul to 1 for i in args: mul = mul * i Print(mul)
@udayjkc
@udayjkc Жыл бұрын
Please push the code to git and provide a link too
@harshadshinde5226
@harshadshinde5226 7 ай бұрын
def multiply(*numbers): multiplication=1 for i in numbers: multiplication=multiplication*i print(multiplication) multiply(3,3) multiply(2,2,2,2,2)
@rupayadav256
@rupayadav256 Жыл бұрын
Simple and amazing concept explanation. It was point to Point. Thank you. Looking for more conceptual videos(oops)
@manthinireshmasri8276
@manthinireshmasri8276 Жыл бұрын
Mam please do upload web development course too includes html,css,Java script....I would be more helpful to us
@Shivam42022
@Shivam42022 Жыл бұрын
Mam java course karwa do please 🙏
@noorhussain1559
@noorhussain1559 Жыл бұрын
Ma'am humko kuch smjh m to aata nhi......but aap bahut achhi lagti hain .....iss liye Sara class attend krte hain
@born2victory944
@born2victory944 Жыл бұрын
Waiting for full tutorial 🚩❤️
@unluckyfellow-vc4le
@unluckyfellow-vc4le Жыл бұрын
Madam next time class cheypinapudu live peytandi❤
@-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.
@user-jm5ge1vs6f
@user-jm5ge1vs6f Жыл бұрын
I have a doubt
@trushantjagdish4275
@trushantjagdish4275 Ай бұрын
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)
@veteran067
@veteran067 Жыл бұрын
Python series??
@onxane5624
@onxane5624 Жыл бұрын
Mai toh arts wala hu 😋
@beneelohimhub
@beneelohimhub 10 ай бұрын
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.
@satyasharma2913
@satyasharma2913 Жыл бұрын
❤❤❤❤i from banking sector but why i here idk 😂
@wrapfreekzz
@wrapfreekzz Жыл бұрын
Waiting for more python videos
@hrushikeshkarthikeyanpamu6039
@hrushikeshkarthikeyanpamu6039 2 ай бұрын
#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
@garao69
@garao69 Жыл бұрын
Waiting for Tomorrow's hindi videos ❤️‍🔥
@riteshrana01
@riteshrana01 Жыл бұрын
Ma'am please give notes
@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
@arshadtv7744
@arshadtv7744 Жыл бұрын
Mam why u stopped providing notes😢😢
@venkatyeruva6037
@venkatyeruva6037 Жыл бұрын
I am ca student I don't know why I was watching this video You was attractive don't distract me
@salamabu1135
@salamabu1135 6 ай бұрын
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!!
@anishmanandhar1203
@anishmanandhar1203 Жыл бұрын
Hello Jenny maam excellent content , plz also upload the code
@Vinayyoutubechannel143
@Vinayyoutubechannel143 Жыл бұрын
I like you
@krishnashis.
@krishnashis. Жыл бұрын
I wanna be a coder
@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
@tridevthakur5434
@tridevthakur5434 Жыл бұрын
Mai to Commerce ka Student Hu 😍
@iwillbe09
@iwillbe09 Жыл бұрын
😂😂😂😂
@bunnybhaigaming1084
@bunnybhaigaming1084 Жыл бұрын
She is cute 🥰
@user-jm5ge1vs6f
@user-jm5ge1vs6f Жыл бұрын
Hi mam
@ShivaMGupta-go1on
@ShivaMGupta-go1on Жыл бұрын
pahli bar coding me mza nhi aa rha 😅
@vishalaaryan29
@vishalaaryan29 Жыл бұрын
RVCJ se aaye?😂
@sureshchoudhary840
@sureshchoudhary840 Жыл бұрын
Aap KZfaq s jayada s insta p famous ho gye ho 😂😂😂😂
@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
@ankitsirscience8901
@ankitsirscience8901 Жыл бұрын
Ma'am ap gk pdha do na 🙈🙈🙈
@Prathamx.
@Prathamx. Жыл бұрын
Bhai mai toh hu hi 10th mai😂
@gxb4877
@gxb4877 Жыл бұрын
I am a Mechanical engineering professional but... Cmon we all know why we're here 😁.. To learn about args and kwargs 🧐
@pavankumaronlineworld8694
@pavankumaronlineworld8694 Жыл бұрын
Mujhe samaj kuchh nhi aata Lekin m poori vdo dekhta hu.
@zenitsu1696
@zenitsu1696 Жыл бұрын
Hame sab samajh aa raha hau 😏
@mohitsoni7157
@mohitsoni7157 Жыл бұрын
Wait one sec. I am an art student why I am here ?😢
@Abhishek-ur3zs
@Abhishek-ur3zs Жыл бұрын
Mummy mujhe bho java padhna h
@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
@user-sw5xl9ui9q
@user-sw5xl9ui9q Жыл бұрын
def multiply(*numbers): m=1 for i in numbers: m=m*i print(m) multiply(2,3,-6,8) multiply(2,5,8,9,8,6)
@akhileshgupta4943
@akhileshgupta4943 2 ай бұрын
aap ko hindi nahi ati kya ma'am🙏🙏🙏🙏🙏
@herbal000
@herbal000 Жыл бұрын
Any one from insta
@user-qq7jx7ek6u
@user-qq7jx7ek6u Жыл бұрын
Insta boys Assemble
@rahul._.2221
@rahul._.2221 Жыл бұрын
def multiplication(*num): Mul=1 For I in num: Mul=mul*i Print(Mul) Multiplication(5,6,7)
@ConfusedIdeal
@ConfusedIdeal Жыл бұрын
Your English Is Weak Mam Exactly Like Me. 😂😜
@akhileshgupta4943
@akhileshgupta4943 2 ай бұрын
hindi me parahya karo maam
@brandedchora8643
@brandedchora8643 Жыл бұрын
Aap itna acha dikhte ho so cute 🥳 mere dost se shadi karlo
@djosjsjw
@djosjsjw Жыл бұрын
𝙼𝚊𝚒 𝚊𝚙𝚔𝚊 𝚍𝚘𝚜𝚝 𝚋𝚗𝚗𝚊 chahuga🤣🤣
@madara8999
@madara8999 Жыл бұрын
She was doing great until she opened PyCharm in light mode😐
@user-mf8ui8zu4d
@user-mf8ui8zu4d 2 ай бұрын
No , she like only that light vision. she only tell.
@SaiGamingff09
@SaiGamingff09 2 ай бұрын
def product(*args): c=1 for i in args: c*=i print(f'The product is {c}') product(-1,12)
@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)
Types of Arguments in Python | Python Tutorials for Beginners #lec61
21:11
Jenny's Lectures CS IT
Рет қаралды 86 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 12 МЛН
Python *ARGS & **KWARGS are awesome! 📦
14:54
Bro Code
Рет қаралды 74 М.
*Args and **Kwargs in Python
3:49
b001
Рет қаралды 259 М.
Abstraction in Python | Python OOP Concepts| Python Tutorials for Beginners #lec98
16:06
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 436 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 56 М.
Modules in Python | Python Tutorials for Beginners #lec97
25:28
Jenny's Lectures CS IT
Рет қаралды 66 М.
Python for Beginners - Learn Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 18 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН