135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
I didn't ignore it.
I've read it, understood it and kept moving with my other lessons.
I am only a beginner to python and I found AI to be irritating. So, I joined this group to find some human help. That's it.
Write some code that does basic calculations. Additions, subtractions. Let the functions print the output only.
Читать полностью…
The purpose of functions is to give parts of the code a name. It's an incredible tool to structure your code. And not to have to repeat it.
Читать полностью…
Sometimes the point is to see result and more often it is the point to get the result.
Читать полностью…
Yes
What does None mean here?
Isn't the whole point that I see the result?
I am guessing that for me to understand this, I need to understand the full picture of what aa function does
That's inside the function. When you call the function, it returns a value. Even if there is no return statement. If you want a value from the function, it should return one.
And yes, that's the only difference.
I need the answer now.
And I tagged you because you are mostly available. 🙂
You know that you arein the wrong group to ask that question, right?
Читать полностью…
That low huh?
Even tho I've explained it to you that I was trying to understand and not copy&paste
Void function is a function that js does his thing and u dont expect anything as a result back ,hence by defualt it returns None , returning function does his thing and return a value or any object which u will use further in u code by assigning it to a variable
Читать полностью…
Code without functions is less readable and more repetitive. Vastly so.
Читать полностью…
Just at the beginning of learning it's more about seeing it. So that you understand how it works and what it does.
Читать полностью…
The value every function implicitly returns is None. So if you assigned the return value of a function to a variable, it would be None.
Читать полностью…
+ If I was cheating on my exams, I'd copy&paste the answer straight from AI and not waste my time trying to understand it😂
Читать полностью…
@notfromcambrigde
I am having suck a hard time understanding the difference between void-function and value returning function.
The only difference I see is one you are using return function and the other, you aren't.
The furthest explanation I got is that "it prints the number BUT the variable you create would be assigned to none "
What does that even mean😂
It was great for daily drive (even if people dont like it)
Читать полностью…