# function = a block of code which is executed only when it is called. def hello(first_name,last_name,age): print("hello "+first_name+" "+last_name) print("You are "+str(age)+" years old") print("Have a nice day!") hello("Bro","Code",21)
Superb job on this video my dude, and thank you so much!! Not only do you break down things very well in layman's terms, but you go in depth to the point of answering virtually every question i had that prevented me from fully understanding functions! I was stuck on learning the basic concepts of functions for like 5 days in a row until i watched this
Hello Bro, I really like the way you are explaining the code. Not only dry summary and showing how it should be done properly but repeating over and over why something won't work and why. Thank you, Bro. It's a pleasure to lern with this tutorials.
hey bro I just saw the first 2 minutes and I made this: def realName(): name = input("Oh I'm sorry, so what's your name? ") print("Oh I'm sorry "+ name, ", I'll try to get better") #Here we will guess his name guessName = input("Hey is ur name bot? ") if guessName == "no": realName() bro I'm too happy tysm for this masterpiece ur the real coding goat ngl
This is my code : def easy(a,name,last_name): if a%2==0: print( str(a) + " " + "chetnoe" + " " + name) else : print( str(a) + " " + "nechetnoe" + " " + last_name) for i in range (20,30): easy(i,"You is the best","You is bad boy ")
entered_name = input("Whats your name?: ") def return_name(name): print("Hello " + name + " have a nice day!" ) return_name(entered_name) --- This should work.