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

Hi, I'm building this project and I'm stuck on whether to use classes or functions. I mean, I know classes are like blueprints for objects and all that, but sometimes it feels like functions would do the job just fine. When do I know if I'm overcomplicating things with classes?

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

Python

If you want to provide information, do so publicly.

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

Python

Can anybody here teach me python from scratch?

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

Python

i need a basic Level pdf of python

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

Python

I just integrate apple Pay in using strips I add stripe verification certificate in apple Pay developer center and apple certificate added in stripe uploaded and my apple Pay option showing in my payment section but after pay click is processing not any option show just processing show why any idea?

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

Python

Have you tried google?
Or official python docs?

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

Python

What's the difference between a decorator and a context manager in Python? Provide an example use case for each.

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

Python

Does anybody knows how to use opencv in py

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

Python

Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.

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

Python

Removing coderunner and leaving just regular Python extension should be sufficient.

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

Python

For VScode Python
I have code-runner but it doesn't run the inputs in the terminal

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

Python

If binding has nothing to do with it, why does f() return 20 instead of 10? The closure is clearly bound to the name i, not its value at definition time

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

Python

i = 10
def f():
return i # Will use CURRENT value of i (late binding)

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

Python

it might help you to explicitly initialize "res" as an instance of Config class

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

Python

And for this also


# What does this output? Why?

actions = [lambda x: x + i for i in range(3)]
print([a(10) for a in actions]) # Hint: Same issue!




Late binding strikes again ☹️😓😓

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

Python

Don't worry.. i am teaching her some installation process.. rest u can do

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

Python

I will provide u some information and maybe documents

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

Python

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

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

Python

looks like you need an offtopic group, please continue this conversation at @pythonofftopic

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

Python

"Honestly, decorators and context managers are kinda like two different tools in your Python toolbox. Decorators are super useful for adding some extra functionality to a function without messing with the code inside it. Like, you can use a decorator to log when a function is called or to check if someone's logged in before letting them use it.

Context managers, though, are more about making sure things get cleaned up properly. You know, like when you're working with files or database connections. You want to make sure you close them when you're done, or it can cause problems. Context managers help you do that reliably.

I'm pretty sure that's right... lol"

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

Python

Please provide an example

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

Python

Probably a lot of people.
Try the official tutorials, documentation

https://opencv.org/

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

Python

Rule 1️⃣: Speak English.

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

Python

Any one can tell me which app is good for python language to learn

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

Python

Adding the word Python to your off-topic question doesn't magically turn it to a Python related question, so please delete your message here and move to the @PythonOfftopic group and ask there.

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

Python

It will use the value of i that i has at the the time of the function being executed. Which is the same that happens if you define functions in a loop that uses i. At the end of the loop, i has the last value. When you call your functions, it prints that value.

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

Python

i = 20
print(f()) # Output: 20

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

Python

Binding absolutely has everything to do with it—but maybe we mean different things by 'binding'. Are you saying closures don’t involve variable binding at all, or that late binding isn’t the root cause here?

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

Python

the same reason
binding has nothing to do with it

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

Python

closures work this way: they use ACTUAL variable value
all three functions use the same variable
this variable stores only one value.

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