Комментарии:
SUPER, SUPER helpful. My instructor + Google + Stackoverflow weren't helping at all. This was so simple and helpful.
The only additional thing I would ask would be, what about a function pulling variable from multiple functions?
so maybe something like:
a function "drinks" with variables of tea, soda, juice (perhaps assigned black, coke, apple respectively)
a separate function "entree" with variables of beef, pork, chicken (perhaps ribeye, bbq, fried chicken respectively)
a separate function "desserts" with variables of pudding, cake, ice cream (perhaps tapioca, red velvet, rocky road)
sending their variables off to function "full_meal"
You have this big white screen but all the action is 20px high. Thanks.
ОтветитьThank you
ОтветитьI'm in the same place as Jace, I am watching a video of my uni lecturer making me more confused, google was no help, this video makes it ridiculously clear. Thank you so much for this no nonsense, very logical explanation. AAaaand subscribed
ОтветитьtRNA. You for the concise explanation. It helped wrap my brain around this nuance of python!
Ответить'if you dissliked it, hit the disslike button' xd
Ответитьgreat explanation
ОтветитьNice video. Straight to the point.
ОтветитьThanks man, this video helped me a lot with my assignment, lots of respect
ОтветитьOMG been struggling for this thanks !!
ОтветитьThank you so much! Have been struggling to find a solution to this for hours and this explains it perfectly.
ОтветитьHow do you pass a variable from a function that was called by the main function back to the main function?
Y = 2
Def main ():
One()
Two()
Def one():
X = input (‘enter a number’)
Def two():
Total = x * y
How do I get the input (x) from function one to go back to the main function so that it be passed to function two so that it can do the calculation?
I actually had all my code working and this was missing! You helped me a lot, thanks!
ОтветитьYou made it so simple to understand. Thanks a lot :)
Ответитьwhat if i only want to assign one value to the in another function that take to inputs in ?
ex:
def hello(data)
data=equals something
def bye(data,stats)
You have saved my life bro!
ОтветитьThankyou lad
ОтветитьThank you so much for this video. I couldn't figure out how to pass variables w/out using global. This video made it clear and simple.
ОтветитьHow can I print a function parameter alone without calling the function. Like in this case, how can you print number1 from test(number1, number2) outside the function?
ОтветитьSo how do you pass parameters into a function in another module?
ОтветитьThanks for this, I’m going to try it out!
ОтветитьTysm
ОтветитьRespect ✌️
ОтветитьThanks for posting this video!
ОтветитьEasy and simple! Thanks, Bro
ОтветитьCan I define number1 and number2 as global instead?
ОтветитьThanks you. This is such a helpful video for beginners
ОтветитьCompletely new to python and programming, taking a class. I've been stuck on this for an assignment for hours and neither my class videos, the book, nor the professor explained it clearly. This video helped me figure out where I was stuck in less than 3 minutes. Thanks friend, you're awesome <3
ОтветитьBless you! This is exactly what I needed!
Ответитьwhat if we wanna pass variable from test () to numberfunciton ()? I get an error variable before assignment , can you help me plz ?
ОтветитьNice Thanks for the video.
Ответить