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
The purpose of an exam assignment is to test your knowledge and capabilities to give you a grade that reflects your knowledge and capabilities. It defeats the purpose if others provide you help with that.
Читать полностью…
For n in range (1,100):
r = bin(n)[2:]
if n % 2 == 0:
r = r + “1”
if n % 2 == 1:
r = r + “0”
if n % 2 == 0:
r.count (“1”)
If n % 2 == 1:
r.count (“0”)
r = int(r,2)
if r > 54:
print(r)
I wrote the code so but the minimum number I have is 58
The minimum number R greater than 54 that can be a result of the algorithm is 56.
Читать полностью…
Hello everyone, who will help you figure out the problem?
Читать полностью…
First of all decide what you want to do
(Front end or back end or anything else)
Then decide your programming language
If your field doesnt match with what python provides, theres no point in it
No, you'd need to register the virtual subclassing yourself (in addition to inheriting from ABC) and there's no real inheritance.
Читать полностью…
AI helps you in writing code, but it doesn't excuse your inability to understand it. You are the one signing off on the changes you contribute. You are the one responsible, if it doesn't work, malfunctions or isn't secure.
Читать полностью…
No, VS Code only auto-saves unsaved source code text or allows manual debugging pauses, whereas safe-state checkpoints the actual live production runtime memory and loop iteration progress during an unhandled crash in any terminal environment.
Читать полностью…
cool project, but doesn't it already exist on the editors?
I remember for example vscode does this automatically
"Hi", "hello" and all other socializing goes to @pythonofftopic! Feel free to chat there, and ask for help with Python code here. Don't forget to delete your message from this group!
Читать полностью…
i already know about those, im looking for a source of information that explains the in and outs of composition-based patterns (like the ones i mentioned) with pythonic examples
Читать полностью…
Where can i find good resources on decoupled python code architectures? stuff like ECS, component pattern, etc.. (my goal is to learn how to properly structure my code and avoid untracable code when my projects grow)
I've searched alot but every resource i found was incomplete or not in python
I'd suggest you start with and only focus on point 1. If the rest confuses you, it'll become clearer once you solved that point.
Читать полностью…
The natural number N is given to the input of the algorithm. The algorithm constructs a new number R on it as follows.
1. A binary notation of the number N is being built.
2. Two more categories are added to this entry on the right according to the following rule:
A) at the end of the number (on the right) is added 1, if the number of units in the binary notation of the number is even, and 0, if the number of units in the binary notation of the number is odd;
B) 1 is added to this entry on the right if the remainder of the division of the number of units by 2 is 0, and 0 if the remainder of the division of the number of units by 2 is equal to 1.
The record obtained in this way is a binary notation of the desired number R.
Specify the minimum number R, which exceeds 54 and can be the result of the algorithm. In the answer, write down this number in the decimal system.
Thank you for telling me. I never would have figured that out on my own.
Читать полностью…
If I understand it correctly, python has both virtual and explicit class inheritance, by whether the superclass was defined as abstract base classes?
Читать полностью…
Dears, hello. I came here for different question. I learnt some python long time ago and i loved it. But rn i am confused if i need to restart it and go deeper. What can be a good reason and motivation to do it when AI and more supply/less demand exists? Where can Python take the learner?
Читать полностью…
https://pypi.org/project/safe-state/
https://github.com/IronFighter23/safe-state
Can you please check this
explain more. what kind of desktop application do you want?
Читать полностью…
It's just a bad idea to keep ignoring the rules if the last message before yours explicitly explained not to do it.
Читать полностью…
Hey guys, I created an open-source Python library called safe-state that automatically saves your script's execution state on a crash so long-running pipelines and automation can resume seamlessly from the exact point of failure when rerun—I'd love to get your feedback and suggestions on the architecture!
Читать полностью…
I recommend you take a look at the SOLID and DRY principles; they're essential for building a clean architecture for any project
Читать полностью…
Sorry, i was playing in the wrong place… but, anyway, i’m really trying to develop an interactive cli and it is pretty confusing for my skill level, i know a bit about python but never developed nothing serious, now i’m trying to write a little program with a tui and i’m not really sure about which approach to use 🥲 i looked at design patterns - really cool - and i wonder if there is something similar around. Simple and practical
Читать полностью…
https://www.oxfordonlineenglish.com/free-english-lessons-mobile
Читать полностью…