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

  Рет қаралды 58,774

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

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