Posts by Erick Kokubum • 136 points
12 posts
-
1
votes2
answers77
viewsA: What can be done to improve my counting function?
In relation to your method countdown you could work with a Mapping of numbers from 1 to 60 in relation to your counters, IE, basically what I’m talking about is that you could create a dictionary of…
pythonanswered Erick Kokubum 136 -
0
votes1
answer78
viewsA: Doubt on the Setter
When you use the idea of Property you can start from two different approaches: 1. Use class Property as follows: algum_atributo = property(fget=None, fset=None, fdel=None, doc=None) Where Property…
-
0
votes1
answer70
viewsA: I need you to help me with this issue in C
The idea of this question is to remember that, if Voce has, for example, 155 real, Voce knows that: The amount of hundreds will be equal to 155/100, remembering that we are considering the entire…
canswered Erick Kokubum 136 -
0
votes1
answer35
viewsA: I’m not being able to assign value to my attribute by my method
So whenever you can try to provide as much information as possible to facilitate understanding of who is trying to help, okay? Having said that, I took a look at your code and put it to run here, it…
-
0
votes1
answer138
viewsA: How to filter records per month in Python / Flask
So I wanted a little more information to try to help you, but from what you’ve provided I’m going to present you with an alternative: Are the vouchers you mentioned saved in your ne database? If…
-
2
votes2
answers61
viewsQ: Relation __dir__ method and __getattribute__method
Guys, I wanted to ask you a question: class Frob(object): ... def __init__(self, bamf): ... self.bamf=bamf ... def __getattribute__(self,atr): ... return object.__getattribute__(self,'teste') When I…
pythonasked Erick Kokubum 136 -
1
votes2
answers112
viewsA: Generating a txt with random numbers repeats the numbers
Pay attention to your result string, it is set before entering the for loop, only that inside it is not restarted, ie: Your loop is responsible for generating the word with 10 random letters, after…
-
0
votes2
answers382
viewsA: Shopping Cart Java
So, your question is a little complicated to understand, but from what I read, you want to work with a dynamic amount of information, IE, the user will keep entering the data, until he decides to…
javaanswered Erick Kokubum 136 -
0
votes1
answer267
viewsA: Language C: How to store information in WHILE and present the entered data in a list?
So, there are several ways that you could save the hotels and present them at the end, one option would be to create a list (data structure), but by the level of the exercise I believe it is a…
canswered Erick Kokubum 136 -
0
votes2
answers43
viewsA: Error in display of dictionary information
There are some good modifications that could be made in your code, such as a decrease in the amount of conditions, among others, but this happens, and over time you will work out these details, so…
-
0
votes1
answer137
viewsA: Error of migration, Flask
It became a little complicated to understand your code, but by the error to realize that your application "app" is not being defined, so the problem lies in creating the instance of the Flask…
-
1
votes1
answer77
viewsA: Copy and split a List in Python3, Merge Sort
I took a look at the link of the code you passed, your way of writing is also correct but it is necessary to take into account some specific points, for example: # a variável m desse código…