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
Just the phrasing is a bit unusual. And it seems that a translation of the exam question from Russian to English would account for that oddity.
Читать полностью…
So it's a question that may come up in your exam or possibly was a task in previous exams, but this is not your current exam question?
Читать полностью…
What does that mean? I've been learning python quite recently and I only have an exam in a year
Читать полностью…
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.
Читать полностью…
This is a problem from the example of the exam I'm going to have, what else?
Читать полностью…
And to pass well, I'm asking for help from you, which I don't get
Читать полностью…
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!
Читать полностью…