One quick correction at 3:12 : The formula for Geometric mean is not correct! If you haven't yet accessed the playlist, do it now: ruclips.net/p/PLu0W_9lII9agwh1XjRt242xIpHhPT2llg
Day 5 of #100DaysOfCode. Today in this video 20, I learned that Python functions are organized blocks of code for specific tasks. There are built-in and user-defined functions. Built-in functions come pre-coded, while user-defined ones are custom-made. Functions are defined using the 'def' keyword and called with their name and parameters. This helps keep code neat and organized. Thank You Harry Bhaiya.
@@Archanaghimire_18 try in this format, def function_name [ try the function name like this for eg. isGreater , first letter make it small and the next word start with capital ] (parameters): Then write the logic for the function and then whatever is yur function name 'call' it...
Damn I cannot believe I am maintaining consistency I do watch only one video per day cause I am not from cs and it's my 20th day I'm very happy that you are my first teacher to teach me coding. Thank you Harry bhaiya for making coding simple to understand :)
00:00 Functions are used to separate logic from main program 01:36 Functions are blocks of code that can be called whenever needed 03:50 Converting code into function 06:02 A function can be written to find the greater number from two given numbers. 08:02 Functions are like code words used to define a block of code 10:14 Functions help in breaking down logic in bigger programs. 12:02 Functions in Python 14:04 Basics of Creating and Calling Functions
Harry sir! I have written the following code based on the knowledge you have provided. Thank you so much. I'm getting better and better in coding due to your efforts. Code: def calculatesum(a,b): sum=a+b print("The sum of two number is :", sum) def calculateGMean(a,b): gmean=(a*b)/(a+b) print("Geometric mean of two numbers is : ", gmean) num1=int(input("Enter the first number :")) num2=int(input("Enter the second number :")) calculatesum(num1,num2) calculateGMean(num1,num2)
its day 20 and i am consistently watching daily only 1 video , its the first time where i am maintaining my consistency well i will keep it on. Thanks a lot to you @CodeWithHarry sir to make the coding this easy and simple.
Good Evening Harry Sir, #100DaysPython tutorials complete hone ke baad aap please Machine Learning or Data Science ka full detailed tutorials banao, kyu ki aaj kal ML aur DS fields, top trending pe chal rahe hai all over the world, aur aane wale saalo main bhi chalne wale hai, sir please its a request if you have time, make ML or DS tutorials, just like python ones. Thank You.😀👌❤
def IsGreater (a, b): if (a>b): print ("First number is greater") else: print ("Second number is greater or equal") def AlgebricFormula (a, b): Form= a**2 - 2*a*b + b**2 print (Form) a=8 b=9 IsGreater (a, b) AlgebricFormula (a, b) Finally I was done with this after mistakes. Thank you for simplifying things.
hello friends i made this calculator how it is def plus(a,b): value1 = a + b print(value1) def minus(a,b): value2 = a - b print(value2)
def multi(a,b): value3 = a * b print(value3)
def divid(a,b): value4 = a / b print(value4)
st1 = "welcome to the irfan's calclulator" print(st1.center(100)) print("enter any two numbers of which you want to know the answer") a = int(input("enter the first number :")) b = int(input("enter the second number :")) d = int(input('''enter the numbers to choose the symbole : "1" is for addition "2" is for subtraction "3" is for multiplication "4" is for divide please select one number :''')) match d: case 1: plus(a,b) case 2: minus(a,b) case 3: multi(a,b) case 4: divid(a,b)
I made this: print("A code for operations on two numbers") input("Press Enter:") x = input("Choose your first number:") y = input("Choose your second number:") print("Choose any operation given below:") A = "1.Addition" print(A) B = "2.Substraction" print(B) C = "3.Division" print(C) D = "4.Multiplication" print(D) E = "5.Exponential" print(E) F = "6.Remainder" print(F) op = input("Choose any number from 1 to 6 as given above:") if "1" in op: print("Sum of", (x), "and", (y), "is:", int(x) + int(y)) if "2" in op: print("Difference between", (x), "from", (y), "is:", int(y) - int(x)) if "3" in op: print("Division of", (x), "and", (y), "is:", int(x) / int(y)) if "4" in op: print("Multiplication of", (x), "and", (y), "is:", int(x) * int(y)) if "5" in op: print((x), "to the power", (y), "is:", int(x)**int(y)) if "6" in op: print("Remainder of", (x), "when divided by", (y), "is:", int(x) % int(y))
what i made as an example: a = 34 b = 21 def increment(a, b): c = a + b print(c) increment(a, b) if a>b: print("A's value is greater than B") else: print("B's value is greater than A")
sir sab concepts crystal clear hai. Learning python for my class 8th computer exams........... but thoda advanced concepts bhi samajh raha hoon. mujhe HTML bhi aata hai.... aapke videos kaafi interesting hote hai aur kaafi maja aata hai, Thnx sir for your efforts ------------- your beloved student and future Programmer
Thank you so much harry bhaiya. My friends say that those who learn from video lectures aren't good programmer. But I learn from your video courses and I also refer to books...
def calculategreaternumber(a,b,c): if(a>b): if(a>c): print("First number is greatest") elif(b>c): if(b>a): print("Second number is greatest") else: print("Third number is greatest") num1=int(input("Enter your first number :")) num2=int(input("Enter your second number :")) num3=int(input("Enter your third number :")) calculategreaternumber(num1,num2,num3)
00:01 Functions help to separate and reuse code logic. 01:31 Using functions in Python to avoid repetitive code 03:54 Implementing the geometric mean as a one-line function. 06:50 Writing a function to compare two numbers and find the minimum value 08:40 Functions help in creating code that can be reused and called with a single word or line. 10:27 Using 'pass' in a function in Python allows to write the function body later 12:21 Creating user-defined functions in Python 14:27 Naming conventions and function indentation in Python Crafted by Merlin AI.
Sir bahut muskil ho rha h mai class 10th mai hun orr humare pre-boards chl rhe h parr phirr bhe time bcha kar harr rozz apka course dekhta hun 🤗🤗🤗💕💕💕👍😘😘
Sir I took the challenge to complete this playlist in 25 days that means 4 videos a day with practice, trust me sir I am loving it. I am now on 4th day. On track, thanks for such quality education ❤❤❤
Sir, in defining a function in last step shouldn't we use return() in place of print() to avoid that unnecessary printing one more line, as return() works absolutely fine. Kindly guide.
Your point is correct, you can use return only. Return aur Print ka alag use hai, agar aap kuch return karna chahte ho to return is good, agar sirf information display karna chaahte ho to print is good.
TRY THIS GUYS , IT INCLUDES MAXIMUM TOPICS OF PREVIOUS LECTURES SMALL STARTING FROM A BEGINNER ALL THX TO HARRY BHAI 😁 def isgreater(a,b) : print(a,chr(176),"C") print(b,chr(176),"F") con1="first Value is greater than second " con2="both values are equal" con3="second number is greater than first " if(a>b): print(con1.title()) elif (a==b) : print(con2.title()) else : print((con3.title()).replace("Number","Value")) a=float(input("Enter Temperature in degree Celsius: ")) b=(9*a/5)+32 isgreater(a,b)
a = int(input("enter your first number: ")) b = int(input("enter your second number: ")) def plusAB(a, b): total = a + b print(total) def greaterNumber(a, b): if(a>5): print(a, "is greater") if(b
def GreaterAmongThree(a,b,c): if a>b and a>c: print("a is greater") elif b>a and b>c: print("b is greater") else: print("c is greater") GreaterAmongThree(6,4,2) GreaterAmongThree(4,6,2) GreaterAmongThree(2,4,6)
def calculate_mean(a, b): mean = (a*b)/(a+b) print(mean) if a > b: print("First number is greater") else: print("second number is greater") a = int(input("Enter the first number: ")) b = int(input("Enter the second number: ")) calculate_mean(a, b)
Question a=1 b=2 print("value of A is ",a) print ("value of B is ",b) for c and d how make function which work like print ("value of C is",c) print("value of D is",d)
One quick correction at 3:12 : The formula for Geometric mean is not correct!
If you haven't yet accessed the playlist, do it now: ruclips.net/p/PLu0W_9lII9agwh1XjRt242xIpHhPT2llg
No problem Harry bhai
Bhi plzz " C " ya " javascript " pe 100days lao
@@darkcoder1389 there are already around 100 videos recently completed by Harry bhai in Javascript
no problem
web 3 do something......
Old is Gold, Binod was such an old refrence but brought a smile to my face.
heard binod
Day 5 of #100DaysOfCode. Today in this video 20, I learned that Python functions are organized blocks of code for specific tasks. There are built-in and user-defined functions. Built-in functions come pre-coded, while user-defined ones are custom-made. Functions are defined using the 'def' keyword and called with their name and parameters. This helps keep code neat and organized.
Thank You Harry Bhaiya.
why is my function not running?
@@Archanaghimire_18 try in this format,
def function_name [ try the function name like this for eg. isGreater , first letter make it small and the next word start with capital ] (parameters):
Then write the logic for the function and then whatever is yur function name 'call' it...
Damn I cannot believe I am maintaining consistency I do watch only one video per day cause I am not from cs and it's my 20th day I'm very happy that you are my first teacher to teach me coding.
Thank you Harry bhaiya for making coding simple to understand :)
which branch
@@priyanshugupta3576 same bro
@@Koolreelerssame bro
00:00 Functions are used to separate logic from main program
01:36 Functions are blocks of code that can be called whenever needed
03:50 Converting code into function
06:02 A function can be written to find the greater number from two given numbers.
08:02 Functions are like code words used to define a block of code
10:14 Functions help in breaking down logic in bigger programs.
12:02 Functions in Python
14:04 Basics of Creating and Calling Functions
The most useful and meaningful comment here
❤
Everything is cleared and the "binod" is on another level
Day #20 done! Harry bhai using the Binod meme was a smart move to let us understand the use of function easily 😆
Ashtagfirulla !!!!
H to to ye kafir hi
@@RK.7789 ?
@@RK.7789 Harry bhai is Muslim. His actual name is Haris Ali Khan❣
@@k0p2. check his email in the first video of this course.Haris Khan is his name
Brother which course of harry should i learn from Android
1:- the ultimate python course
2:- python tutorial for absolute biggners
From: Malaysia and Pakistan.
Love the way you teach using analogies, it's pretty easy to understand the concepts!
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
congratulation for your 5+ million subs
congratulations harry bro on 4 million subs
you are the only guy whom which i learnt coding very well.
Harry sir! I have written the following code based on the knowledge you have provided.
Thank you so much. I'm getting better and better in coding due to your efforts.
Code:
def calculatesum(a,b):
sum=a+b
print("The sum of two number is :", sum)
def calculateGMean(a,b):
gmean=(a*b)/(a+b)
print("Geometric mean of two numbers is : ", gmean)
num1=int(input("Enter the first number :"))
num2=int(input("Enter the second number :"))
calculatesum(num1,num2)
calculateGMean(num1,num2)
its day 20 and i am consistently watching daily only 1 video , its the first time where i am maintaining my consistency
well i will keep it on.
Thanks a lot to you @CodeWithHarry sir to make the coding this easy and simple.
Good Evening Harry Sir, #100DaysPython tutorials complete hone ke baad aap please Machine Learning or Data Science ka full detailed tutorials banao, kyu ki aaj kal ML aur DS fields, top trending pe chal rahe hai all over the world, aur aane wale saalo main bhi chalne wale hai, sir please its a request if you have time, make ML or DS tutorials, just like python ones. Thank You.😀👌❤
S
def IsGreater (a, b):
if (a>b):
print ("First number is greater")
else:
print ("Second number is greater or equal")
def AlgebricFormula (a, b):
Form= a**2 - 2*a*b + b**2
print (Form)
a=8
b=9
IsGreater (a, b)
AlgebricFormula (a, b)
Finally I was done with this after mistakes. Thank you for simplifying things.
please like the videos, he is a gem who is providing these courses for free
may Allah bless you harry bhai
Your teaching is great and I am from non-IT background you made code so simple to understand Thank u
hello friends i made this calculator
how it is
def plus(a,b):
value1 = a + b
print(value1)
def minus(a,b):
value2 = a - b
print(value2)
def multi(a,b):
value3 = a * b
print(value3)
def divid(a,b):
value4 = a / b
print(value4)
st1 = "welcome to the irfan's calclulator"
print(st1.center(100))
print("enter any two numbers of which you want to know the answer")
a = int(input("enter the first number :"))
b = int(input("enter the second number :"))
d = int(input('''enter the numbers to choose the symbole :
"1" is for addition
"2" is for subtraction
"3" is for multiplication
"4" is for divide
please select one number :'''))
match d:
case 1:
plus(a,b)
case 2:
minus(a,b)
case 3:
multi(a,b)
case 4:
divid(a,b)
I made this:
print("A code for operations on two numbers")
input("Press Enter:")
x = input("Choose your first number:")
y = input("Choose your second number:")
print("Choose any operation given below:")
A = "1.Addition"
print(A)
B = "2.Substraction"
print(B)
C = "3.Division"
print(C)
D = "4.Multiplication"
print(D)
E = "5.Exponential"
print(E)
F = "6.Remainder"
print(F)
op = input("Choose any number from 1 to 6 as given above:")
if "1" in op:
print("Sum of", (x), "and", (y), "is:", int(x) + int(y))
if "2" in op:
print("Difference between", (x), "from", (y), "is:", int(y) - int(x))
if "3" in op:
print("Division of", (x), "and", (y), "is:", int(x) / int(y))
if "4" in op:
print("Multiplication of", (x), "and", (y), "is:", int(x) * int(y))
if "5" in op:
print((x), "to the power", (y), "is:", int(x)**int(y))
if "6" in op:
print("Remainder of", (x), "when divided by", (y), "is:", int(x) % int(y))
For your work i will give you 100 but its silence you can do it directly without using function 😅
good irfan......🥰🥰
Perfectly done GOOD JOB
Awesome 👍
Very simple video. Love your studio setup!
what i made as an example:
a = 34
b = 21
def increment(a, b):
c = a + b
print(c)
increment(a, b)
if a>b:
print("A's value is greater than B")
else:
print("B's value is greater than A")
So what?
@@anantabp6467 so moan 👄
sir sab concepts crystal clear hai.
Learning python for my class 8th computer exams...........
but thoda advanced concepts bhi samajh raha hoon.
mujhe HTML bhi aata hai....
aapke videos kaafi interesting hote hai aur kaafi maja aata hai, Thnx sir for your efforts
------------- your beloved student and future Programmer
very good brother, keep it up
bhai computer exams 8th mein kab se aa gaya re??
@@atharvaandhale2465 haa bhai aa gae ab humari baari mein hee nhi they ab aa gae
After completing this python series
Please start JavaScript 100day tutorial ❤️
Already it's there bro
Check playlist of this channel, you will get javascript playlist.
@@aslameditz3895 can you please share me link .
I am not able to find that course.
@@shristisrivastava1324 ruclips.net/p/PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR
BInod best example, you are the one of them ,Who helping to all students, that is so good.
Hello Harry Can you make same playlist for MySQL
Thank you so much harry bhaiya.
My friends say that those who learn from video lectures aren't good programmer. But I learn from your video courses and I also refer to books...
your friend is just bitter that they had to pay fees and you didint
Ah please upload DSA with python also🙏🙏🏻
Yes bhai sir, i hope you've already planned ❤️
def calculategreaternumber(a,b,c):
if(a>b):
if(a>c):
print("First number is greatest")
elif(b>c):
if(b>a):
print("Second number is greatest")
else:
print("Third number is greatest")
num1=int(input("Enter your first number :"))
num2=int(input("Enter your second number :"))
num3=int(input("Enter your third number :"))
calculategreaternumber(num1,num2,num3)
This is my first programming language to learn from scratch. So far it is going great. Thanks Harry bhai
What do you mean by scratch
@@bepositive271 means from the beginning.
Brother which course of harry should i learn from Android
1:- the ultimate python course
2:- python tutorial for absolute biggners
@@teamWWF23 Obviously the ultimate python course cause it hold the newest information about python and interviews
@@bepositive271 thank brother ❣️
Can you also give me some tips how i make notes while learning from Android
Thank you so much Harry Sir ,
because of you I am able to learn Python, and this course is amazing I am enjoying this course.
We are going deep in python ! 👍👍❤❤
💀
@@zaryabz7809 are bhai mera wo matlab nahi tha , sacchi 😂😅😅😅. Mr hansu ya rou
Playboy!
@@thetigers7777 umm hmm noty ho raha hai😼
suggestion: do all the exercise and practice on visual code or replit by yourself. the more programs u will do you will make you more efficient.
Thank you so much Harry Bhai for the amazing videos...
I doubt if anyone is having doubt after watching your vids..
helping me alot with learning Python, Thank you so much sir
Harry bhai koi full stack web ka project le ao.
Using python with database
love the way you taught us!!! It's very helpful for us
You are biggest inspiration of all time. I love to study with you....
Lots of Love..........🙃🙃
Sir can you please tell the website from where we should start practicing questions or any other source.
and also Present on Day-20 ✋
Leetcode
Geeks for geeks
samjh aara hai sab kuch... harry bhai thank you so much
Love 💞❣️❣️ you Harry Bhai , you are great
It’s been 1 week since I started and trust me you nailed it .I aspire to be a programmer like you.Currently on #20 th video.
Smaj Gya ❤
yes , we are going deeper . enjoying the python, creating cool projects and having fun 😊😊😊😊😊😊
00:01 Functions help to separate and reuse code logic.
01:31 Using functions in Python to avoid repetitive code
03:54 Implementing the geometric mean as a one-line function.
06:50 Writing a function to compare two numbers and find the minimum value
08:40 Functions help in creating code that can be reused and called with a single word or line.
10:27 Using 'pass' in a function in Python allows to write the function body later
12:21 Creating user-defined functions in Python
14:27 Naming conventions and function indentation in Python
Crafted by Merlin AI.
def cube(a):
print(f"the cube of the number str{a}",a**3)
a=int(input("Enter the value: "))
cube(a)
Day 20 of 100 of python challenge completed. #100daysofcode #100dayspythonchallenge
मैंने आपकी Python सीरीज shikhna sharu किया .. आपका shikhane ka style बहुत बढ़िया है
1:30 "is concept ko samjha ke hi manunga"
Is line se ek alag hi feeling ai❤❤
#PositiveVibesInPython
Yes, i understood this concept
This course is awesome 🔥🔥
Such bhai you are the best teacher in youtube ❣️ really Op bhai🎉
Kis kis ke pass pc/ laptop nhi hai fir bhi python sikh rhe hai !!
Mere pas
Mian
Phone me bhi hoti h bhai
@@Stdwidme konsa app bro
@@Md__Ikbal_ pydroid3
harry bhai! I love the way you teach. I am a 13 yr old and i am learning python bcz i found ur playlist
kis kis ko ye concept 99% samjh a gya hai??????✌✌✌✌✌
100%
Tujhe hi 99% aaya hai...
Sabko to 100% aaya hai 😅
mujhe 99% samajh aya tha
fir "binod" ke example ke baad 110% samajh aa gya XD
@@koushik1947 ok binod
100% bro😅😂🤣
Sir bahut muskil ho rha h mai class 10th mai hun orr humare pre-boards chl rhe h parr phirr bhe time bcha kar harr rozz apka course dekhta hun 🤗🤗🤗💕💕💕👍😘😘
This may become the re rise of the BINOD meme among coders 😂
I understood each and every thing. Thank you harry bhai for making this series.
First time I understand function 😁😁thank you.👍👍all cleared
thankyou bhai functions samaj mein aagaye aur code likhake mazaa bhi aaagaya!!!!!😁
Recived the same hoodie as your's today. It's Nice.
harry , your course is very easy
It's been the 20th day of coding, and I love it.
Sir I took the challenge to complete this playlist in 25 days that means 4 videos a day with practice, trust me sir I am loving it. I am now on 4th day. On track, thanks for such quality education ❤❤❤
Sir, in defining a function
in last step shouldn't we use return() in place of print() to avoid that unnecessary printing one more line, as return() works absolutely fine. Kindly guide.
yes you can use it....~~~`
Your point is correct, you can use return only.
Return aur Print ka alag use hai, agar aap kuch return karna chahte ho to return is good, agar sirf information display karna chaahte ho to print is good.
Brilliant!!!
Present Harry bhaiya 🙂
90% Samajh me agya baaki dobara video dekh kar samajh jaunga
thank you for explaining so clearly
i understand the function.Thank you
day 20 completed
The expression (a * b) / (a + b) that you provided calculates the harmonic mean, not the geometric mean.
Hi I am from Pakistan I am doing python course of fee 25 thousand. But after coming from class I watch your videos to clarify my concepts. Love u bhai
Today I Learned About Geometric Mean and About Functions.. Keyword=def
Ex:- tuple,title,index,etc
I Love Your Vids.
TRY THIS GUYS , IT INCLUDES MAXIMUM TOPICS OF PREVIOUS LECTURES
SMALL STARTING FROM A BEGINNER ALL THX TO HARRY BHAI 😁
def isgreater(a,b) :
print(a,chr(176),"C")
print(b,chr(176),"F")
con1="first Value is greater than second "
con2="both values are equal"
con3="second number is greater than first "
if(a>b):
print(con1.title())
elif (a==b) :
print(con2.title())
else :
print((con3.title()).replace("Number","Value"))
a=float(input("Enter Temperature in degree Celsius: "))
b=(9*a/5)+32
isgreater(a,b)
bhai agye badhiya se thanks bro you are working hard for us
at first it seemed to be tough, i didnt understand. later when i myself tried and made it interesting, it became crystal clear!! Alhamdulillah
Aapaki wajahase muze python samaj aarahi he thanks 🙏
day#20 done!!!!!
a = int(input("enter your first number: "))
b = int(input("enter your second number: "))
def plusAB(a, b):
total = a + b
print(total)
def greaterNumber(a, b):
if(a>5):
print(a, "is greater")
if(b
inshallah aik din harry bhai kay 10 million subcriber ho gay buhat hi acha parhtay ho you are such a bless for humanity :)
Thank you very much I have computer exam coming up and I was not there in most of the clases😊
yes sir samjh agayi . you are an excellent teacher may God Allah bless you
@CodeWithHarry Which formula is this ab/(a+b). Because the geometric mean formula that I saw was different. It was sqrt (ab).
def GreaterAmongThree(a,b,c):
if a>b and a>c:
print("a is greater")
elif b>a and b>c:
print("b is greater")
else:
print("c is greater")
GreaterAmongThree(6,4,2)
GreaterAmongThree(4,6,2)
GreaterAmongThree(2,4,6)
harry bhaiya
issme aache samjh aaya ek baar me
good explanation with real life examples
perfect and understandable
Sir aa gaya samajh me function() , Thanks , God bless you 😍😍
finally aaj jake smjh aya harry bhhiya !!!
complet day #20 , thankyou@ harry bhai
def calculate_mean(a, b):
mean = (a*b)/(a+b)
print(mean)
if a > b:
print("First number is greater")
else:
print("second number is greater")
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
calculate_mean(a, b)
ifa>b:
^
SyntaxError: invalid syntax
if(a>b) :
love you harry bhai thanks for your efforts nice understanding
Bro GM= (ab)^2 hota h. You have used HM formula. No problem 😊
inshallah we will all succed in our goals
Assalamu alaikum
bi
all is ok
thanks for you
i come from bangladesh
and watch your video regularly
Love From Nepal Harry Bhai❤️God Of coding @Harry Bhai
Bhai aapke wajah se mera python ke saare doubts clear hogye
Day 20 done ✅
it was a little difficult but after some practice now i can easily understand it thank you harry
binod brings back memories lol. Brought smile on my face
Awesome series
Bhaiya at the end of every day please give some questions for us to do as practice
Just simply well teaching ...thanks alot
This video is insane for functions basic
Question
a=1
b=2
print("value of A is ",a)
print ("value of B is ",b)
for
c and d
how make function which work like
print ("value of C is",c)
print("value of D is",d)
harry bhai sb khuch samj aa raha hy. thanksssssssss for your efforts.