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

preview_player
Показать описание
In this lecture we will learn *args and **kwargs arguments in Python:
- Arbitrary Positional Arguments
- Arbitrary Keyword argument
- *args vs **kwargs with program

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#python #pythonprogramming #pythonforbeginners #arguments #jennyslectures
Рекомендации по теме
Комментарии
Автор

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.

glorynwogu
Автор

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)

Calculatorworld
Автор

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)

Hello_______World
Автор

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)

smartifire
Автор

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

aishwaryagandhi
Автор

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)

vaishnavinegi
Автор

Following from 2017 to till now and sure always
30/09/2023

Thank you mam for this python series

rukhsar
Автор

def multiply(*integers):
c=1
print(integers)
for i in integers:
c=c*i
return c




total=multiply (2, 3, 4)
print(total)

sarisivadas
Автор

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.

mjvlogs
Автор

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

BharathKumarThota-egjc
Автор

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

bigman
Автор

Joining in this journey from today

Love from Awadh Provinces (Uttar Pradesh)

Er.Priyanshu_Chauhan
Автор

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

VardhanSmtSpcl
Автор

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)

rupayadav
Автор

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)?

kdpr
Автор

def multiply(*numbers):
total = 1
for i in numbers:
total = i * total
print(total)

multiply(3, 4, 5, 2)

tayyabusman
Автор

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)

trushantjagdish
Автор

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

vinodkumar-rkmt
Автор

Just want to learn python by following a fortunately found this playlist....but I felt sad when I saw that there is already 60+ videos which I have to complete I completed it within 9 days with doing practical and projects also I'm ready to watch new video just after

Thankyou so much mam for providing this type of lecture series..
Love from Jharkhand ❤😍

ankkitseth
Автор

This is the most beginner-friendly explanation. Thanks!

elifcliff