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

It's a one-to-one mapping of command to resulting output. No AI, no magic and no training.

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

Python

How did you guys manage to train this witty bot, Doragonsureiya. I am genuinely curious to know.

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

Python

@notfromcambrigde

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

Python

on this stage of study and in this kind of cases - yes

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

Python

The slower the programming language, the more critical the little things.
But in this case we are talking about the student. He should not get used to bad practices from the very beginning and in the simplest things. He must get used to checking incoming data.

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

Python

No. A simple understanding of basic things.

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

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

!<command> -> <text>

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

Python

https://pythonbooks.org/free-books/

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

Python

Can you tell me anyone that if i start learning python in beginning level than what kind of book should i read with practice and learn. Can give me the list.

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

Python

Is it bad to use exceptions?

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

Python

Why do people do micro-optimizations in a programming language that's comparatively slow and for a non-critical path?

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

Python

this is called premature optimization

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

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.

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