# Write a program with function Argument provide input def addition(a,b): c = a+b print("Addition of two number", c) a=int(input("Please Enter First Number")) b=int(input("Please Enter Second Number")) addition(a,b)
This code is working...yes working without arguments. Can you please explain what is the reason behind this? I'm confused in which situation pass arguments and when not... def add1(): c=a+b print("sum is",c) a=int(input("Enter a:")) b=int(input("Enter b:")) add1()
No, function calling do not require any colon. Colon is only required when you have to write some statements inside any control statement/function definition.
"Sir, please tell me why there is an error while defining a function." excepted'(' . Sure, Anuj. Here's the English translation: "But I didn't use () while defining the function. I tried, and adding () removed the error. So, in the new version, do we need to use () while defining a function?" Some ex def demo(): print("Hello world!") demo Please reply fast me sir
Haa kyoki user se aapne ek baar hi input liya hai. Isilie a aur b me wahi value hamesha hai to chahe aap jitni baat bhi call karo add function a aur b ki value same hogi to addition bhi to same hi hoga na.
def addition(a,b): c=a+b print("addition=",c) a= int(input("enter 1st no.")) b= int(input("enter 2nd no.")) addition(a,b) sir it"s not running can you plz help in this
Hi Sir, I am using pycharm and i am getting output of every code but when i am using function then the output is not showing anything and there is no error in the code. Can you help me in this?
argument section me input work ni kar rha h.... jab hum function ko call kar rhe h to.... jo humne variable le rkha h.. jaise ki.. (a,b) ...... call karne pe.... likha rha h ki.. a define ni h
Wrong from beginning you are teaching wrong.Parameters and arguments are not same. def message(): This is how you define a function you are giving def message:
Sir You Are Real Master in Coding
Hats off to you...👍
Thanks a ton🙂
Congrats sir for 1k subsribers👏
Thanks a ton for your support !!!!!
Av 1 lakh ho gy
Abhi 1.5 lacs hai bro
Ab 130k hain
Ab 186k hai 🤘🎉😎
Bohot bdia sir apne sb kuch simple tarike me samjhaya h
Thank you sir 🙏
Thanks & most welcome dear😊
@@codeitup sir mene graduation me BA kia h + iti diploma (COPA) mera background barrier 🚧 to nhi bnega job k liye
Thank you sir, I have learned well java and python completely from you, you and your explanations are so great sir ❤️❤️
Well explained sir. I almost watched ur all python's video🙏
So nice of you Amisha, keep learning!
you deserve more subscribers
Thanks dear!
U r the best teacher in the world 🏆🏆👍👍thx sir for the this video 😊😊😊
Thanks & most welcome Shakila!
You are so great sir
😊
@@codeituptysm sir. I can't believe you replied me. 😍🥳
best video on you tube
Thanks Rojer!
Ur explanation is so good Sir !! Thank u ✨
Thanks a ton Damon😊
Tq sir it’s very helpful ❤️🔥🥀
Glad to help you!
Wonderful teaching. God bless you
Thanks a ton Ravi, keep learning😊
गुरू भगवान माता पिता जी सदा चरण स्पर्श
Sir apka teaching style bhut acha h pura concept clear Thnx sir
Most welcome Anurag !
very hepful and very informatic.. thank you sir
Glad to help you Bilal!
Your teaching is good sir
Thanks for liking!
Sir is boss of python
Dear sir, tussi great ho🥰🥰🥰
Sir ist drink water you are very hardworking person
Keep up the postive vibes
😊
i am watching video at 12:00 pm sir , your teaching style very nice sir , add advance python playlist sir, i request you
Could you define attributes and instances in simple terms or in our language ,please
You are the best sir
Thanks Rohit!
Thanks helped alot ❤️❤️❤️
🙂
1m hone me jyada time nahi lagega sir ko😊😊
😊
extremely helpful!! thank you :)
Glad to help you🙂
Overmorrow is my exam of cs
And I am completely confident
That I can do my best in my exam
Very nicely explained 😊 video 😊
Thanku Sir
Most welcome Atharv.. Best of luck for your exam😊
@@codeitup Thank u so much 👍🏻
Tomorrow is my IT's exam, iam studying now 🤣🤣at night
Sir, I want to suggest you something after completing videos at last give demonstration of python live
Yes sir atleast show practically after theoretically expalaining
Sir you are explaining expert
😇
Congrats for 1k subs!!!!
Thanks shahbaaz!
Loved this video
Thanks Pratik😊
Thik hai samajh gaya😌
Good 👍
Thnks for easy concepts
Most welcome!
Sir can you make video on scope of variables, plzz
# Write a program with function Argument
def addition(a,b):
c = a+b
print("Addition of two number", c)
addition(5,6)
Thanks ur are best sir u deserve more subscribers
Thanks Harshit.. Keep Learning!!!
@@codeitup thanks sir for replying!!!:)
I really like your videos... You should have more support form us... Keep it up sir. ❤
Thank you so much dear😊
extremely helpful Sir
Thanks Malik!
sir can u combine all the pythone class XI videos into 1 and upload it
bht khub sir
😊
well explained
Thanks Aliza!
Thanks sir
🙂
sir can you please make a video on how global and local varibale execute in for loop
ruclips.net/video/K7PJ89-MPOo/видео.html
# Write a program with function Argument provide input
def addition(a,b):
c = a+b
print("Addition of two number", c)
a=int(input("Please Enter First Number"))
b=int(input("Please Enter Second Number"))
addition(a,b)
amazing guruji.
😊
This vedio is helpfull❤
sir aapki notes kha par milegi
Sir agar mujhe multiple additional karna ho , to kaise hoga
This code is working...yes working without arguments. Can you please explain what is the reason behind this?
I'm confused in which situation pass arguments and when not...
def add1():
c=a+b
print("sum is",c)
a=int(input("Enter a:"))
b=int(input("Enter b:"))
add1()
Bro c = a+b me a or b defined ni h
Great explained sir
Thanks Ravi!
Sir Django ki class nhi h kya aapki
7:56 Sir can we put colon at last addition (5,6):
No, function calling do not require any colon. Colon is only required when you have to write some statements inside any control statement/function definition.
You are great sir 🌹
Thanks !sheikh abbas uddin
"Sir, please tell me why there is an error while defining a function."
excepted'(' .
Sure, Anuj. Here's the English translation:
"But I didn't use () while defining the function. I tried, and adding () removed the error. So, in the new version, do we need to use () while defining a function?"
Some ex def demo():
print("Hello world!")
demo
Please reply fast me sir
demo() when we call function
def add(a,b):
c=a+b
print(c)
a=int(input("enter the 1st no"))
b=int(input("enter the 2nd no"))
add(a,b)
Sir Esme a and b repeat Nahi hao raha
Jab function ko 2 bar call karthe hai to vo same value Ka add deta hai
Haa kyoki user se aapne ek baar hi input liya hai. Isilie a aur b me wahi value hamesha hai to chahe aap jitni baat bhi call karo add function a aur b ki value same hogi to addition bhi to same hi hoga na.
Good sir
JavaScript video sir
Def add(): use for define
Thank you 🔥
Most welcome!
love you from pakistan sir
Thanks Mahadi Sports !!
Thanks sir...
Welcome🙂
Sir mein ye pratical kara per ye likha hua ki a in not defined (error)
👏👏👏👏👏
def addition(a,b):
c=a+b
print("addition=",c)
a= int(input("enter 1st no."))
b= int(input("enter 2nd no."))
addition(a,b)
sir it"s not running can you plz help in this
Hii, you write the correct program but printed C is in string format , so write
Print(" Addition of two number is :+str(c))"
multiplication kaise krte he loop me
pls make a video for android studio
Hi Sir,
I am using pycharm and i am getting output of every code but when i am using function then the output is not showing anything and there is no error in the code.
Can you help me in this?
Do you get your answer?
@@ahmadrandhawa238 yeah now i am getting output
@@khushbukeshari5577 Good one bro now how are you ? in a job?
@@khushbukeshari5577 How much time it takes you to know it?
Nice
Thanks Adnan!
Is colon necessary to use??
Yes, it is the syntax kanak !
sir, the code in which we are aking the values of a,b from the user in argumnent is giving an error while i typed the same code written by you....
Please paste your code here and I will modify that.
Nyc!!
Thanks 🤗
Sir isme argument and parameters konsa he
Sirrr last me jb hm function call krte hai addition me with argument ..
To isme 'a ' is not defined aarha hai
argument section me input work ni kar rha h.... jab hum function ko call kar rhe h to.... jo humne variable le rkha h.. jaise ki.. (a,b) ...... call karne pe.... likha rha h ki.. a define ni h
Paste your code here.
Def ka matlab kya hai aur ye kya chiz hai?
1:50 you forgot to trim it
Yes dear...
Sir lots of people say that parameter and argument is different, sir is it?
Yes both nomenclature are different.
Noice video s!!
Thanks a lot Abhishek 🙂
🥰🥰🥰🥰👍👍
😊
Def fun():
X=100
Print(x)
X=+1
Fun()
Eska ans.kya hoga???🤔
Please reply 🙏
No Answer, X variable is used in small letter while printing while it is in upper case elsewhere.
Whoelse is watching in 2022
Upper ka jitna bhi 5 video hai pattern se leke aage tk
Wo sb run nahi kr rha hai
Aisa q sir..... please..usko lappy me show krke clear kr do aap sir
Not getting
Result
Wrong from beginning you are teaching wrong.Parameters and arguments are not same. def message(): This is how you define a function you are giving def message:
thank you sir
Most welcome!