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

My teacher told: if not sure — use brackets. + Visually more clearly.

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

Python

why oh you're right

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

Python

so

def average(nums):
return sum(nums) / len(nums) if nums else None

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

Python

0 is the wrong value as average for empty list
None would be more suitable

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

Python

For instance, in NestJS, developers can generate default controllers, services, and modules by executing specific commands. Similar to Node.js, a project can be initialized using the npm init command. These commands establish a standardized file structure, eliminating the need for developers to manually recreate repetitive directory layouts. This approach provides a consistent architectural framework, although adherence remains at the developer's discretion. Regarding AI-generated code, while such tools exist, it remains essential for developers to review and understand the output produced by these systems.

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

Python

what is the point of boilerplate code? Also, AI can generate most of it these days

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

Python

def average(nums):
try:
return sum(nums) / len(nums)
except ZeroDivisionError:
return None

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

Python

for zero division error, do this:

if len(nums) == 0:
return 0

before return

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

Python

I do think that's a homework
though even for that, you didn't explain what was your question
You cannot ask people to let the auto random test somewhere pass

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

Python

It's awesome, but not easy at all.

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

Python

Thanks, what do you think about pyside6?

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

Python

Kivy and wxpython are good.

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

Python

Which is the best tools or package to creating a cross-platform desktop app(with python)?

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

Python

MVT - Model-View-Template

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

Python

It is not library but it is framework which works with MVT architecture 🙏

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

Python

hold on, the expression if ... else ... has the lowest priority

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

Python

Check it. Possible you need a brackets for expression.

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

Python

'Try except' is too expensive operation. Better use if in this case.

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

Python

https://www.libhunt.com/l/python/topic/boilerplate

Or look at: https://python-boilerplate.github.io/

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

Python

i m just new to this. willing to start coding journey with python .. i know the basic like functions pointers loops etc of c++ but willing to start seriously n systematically with python .. whats some platfrom that i can use

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

Python

Is there a Python library available to assist developers with boilerplate code, similar to the functionality provided by Node.js or NestJS?

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

Python

everything is 0/0 which will give you an error.

what is the score atleast

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

Python

Initial score with numbers like this:
scores = [50, 60, 70, 60]

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

Python

Also it's gonna be helpful if you learn CSS separately.

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

Python

PySide6 is powerful
gives a native look across platforms, free for commercial use, and beats Kivy and wxPython in features. just expect a larger file size and a learning curve.

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

Python

Hi guys i just joined the group

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

Python

I found pyside6, it seems good.

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

Python

model(m) = model (m)
view(v) = controller (c)
template(t) = view (v)

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

Python

Please is it MVT or MVC as in MODELS, VIEWS AND CONTROLLERS?

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

Python

Django is one of the python libraries to develop web applications. It already contains many readymade web development frameworks.

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