python | Unsorted

Telegram-канал python - Python

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

Subscribe to a channel

Python

#Using a return value function:
def add(x,y):
return x+y
total= add(3,3)
print(f"Charly, this your total: {total}")

"""What if you want to do something
like add wto numbers then add an
other number to that result?"""
a,b = 2,2
total += a+b
print(total)
@Carlangueitor

Читать полностью…

Python

Now, to my beginner eyes, I get 6 each time.
So, I wonder what makes one different to the other in this case!

Читать полностью…

Python

#Using a return value function:
def add(x,y):
return x+y
total= add(3,3)
print(f"Charly, this your total: {total}")

Читать полностью…

Python

The difference is not about how many times you call it but returning something or not

Читать полностью…

Python

I tried it last night.
The week before. I have written the same code over and over.
But, one is a void function, the other is a returning value function. But If I use a variable with the void function, I am getting the same results. So, I wondered what makes one different to the other?

Читать полностью…

Python

Again, not to bo rude but incetivate you to be more proactive 👍

Читать полностью…

Python

My understanding is now a little bit broader than what I have started with.
Once you use the return function, you can call the function wherever you want in the code, right?

Читать полностью…

Python

I wanted a discussion not just an answer.

Читать полностью…

Python

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.

Читать полностью…

Python

It is to help you understand

Читать полностью…

Python

and yet you ignored the answer that you got

Читать полностью…

Python

No one can help you you don't explain your issue

Читать полностью…

Python

He may be done with his test by now.

Читать полностью…

Python

Write some code that does basic calculations. Additions, subtractions. Let the functions print the output only.

Читать полностью…

Python

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.

Читать полностью…

Python

What if you want to do something like add wto numbers then add another number to that result?

Читать полностью…

Python

#Using a void fucntion with a variable
def add(x,y):
addition = x+y
print(addition)
add(3,3)

Читать полностью…

Python

Let me send you the code then.
I will write it now

Читать полностью…

Python

Last night or theprevious week is irrelevant, Do it now

Читать полностью…

Python

I did yes.
I normally would've done that but, I had a very little time

Читать полностью…

Python

Why don't you try it? it will take less tha 5 minutes to write that code

Читать полностью…

Python

I get it, just seemed like you avoided to do some research yourself and aski for more specific stuff. remember writting software will involve a lot of reading

Читать полностью…

Python

Instead of googling...

Читать полностью…

Python

but returning things from functionas are super common

Читать полностью…

Python

Is this a general thing or a test?

Читать полностью…

Python

That low huh?
Even tho I've explained it to you that I was trying to understand and not copy&paste

Читать полностью…

Python

Is anyone good at webscrapping here ??
Can u help me

Читать полностью…

Python

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

Читать полностью…

Python

Code without functions is less readable and more repetitive. Vastly so.

Читать полностью…

Python

Just at the beginning of learning it's more about seeing it. So that you understand how it works and what it does.

Читать полностью…
Subscribe to a channel