Posts by Hyago Santos • 57 points
7 posts
-
0
votes3
answers56
viewsA: Python Problem with exercise
I would try this way, because there is a lot of redundancy in the if’s some identations were wrong, because in Python 3, identation is extremely important, because if a genuine code is a simple code…
-
0
votes2
answers1148
viewsA: (Python + Pyqt5) How to close one window after opening another?
Héber, you can call the build-in function, which translates into English means close: putting it this way: self.name_tela_que_wishing to close.close() For example: self.tela_login.close() Before the…
-
0
votes1
answer158
viewsA: Python application, Pyqt5, not displaying the . UI file?
All the code remains correct, however, a fundamental part is to call the screen you set up to be able to interact with it, as a simple function that translates from English means show the function…
-
2
votes3
answers211
viewsA: Problem where IF and ELIF do not work in Python
I noticed that you could optimize your code by putting the treatment functions of string following them, therefore, if you can verify, I gave myself the freedom to add a simple function that…
-
2
votes1
answer65
viewsQ: Python - Object-Oriented Programming
I created a module with two classes: I want to use both as if the mouse depended on the computer. E.g.: when using them: only when the Computer is turned on does the mouse have permission to turn on…
-
-3
votes1
answer52
viewsQ: How do I check if a STRING has more than 3 characters?
I need to check if a string has more than 3 characters, how do I do this? I’ve tried it like this: nome = input('Digite um nome: ') a = [i for i in enumerate(nome)] print([i for i, y in a]) if a…
-
1
votes1
answer66
viewsQ: How do I check if there is a number in a string?
notas = input('Digite uma nota de 0 à 10: ') if notas.isnumeric() or 0 < notas < 10: print('Nota inválida!') Guys, I want to check if what the user typed contains any number, I’m trying this…
pythonasked Hyago Santos 57