Posts by Bruno Amaral • 31 points
4 posts
-
-1
votes1
answer218
viewsQ: Python - Strings and files
I’m starting to learn Python files. What suggestions would you give to improve the code and make it more beautiful or smaller? """ A ACME Inc., uma empresa de 500 funcionários, está tendo problemas…
-
2
votes2
answers711
viewsQ: Split and rsplit methods, python
I made this little program to try to simulate the methods 'split' and 'rsplit' of Python, but when I run it does not print the last sentence of the string. For example, if in the string I type 'pao…
-
1
votes2
answers2874
viewsQ: Python, Caesar Cipher, Strings
Hello, I would like to ask for some tips to improve the code, especially in the function 'geraMsgTraduzida', to make the code more beautiful if possible. def recebeModo(): """ Função que pergunta se…
-
0
votes1
answer839
viewsQ: How can I improve my hangman game code?
What tips would you give to improve this code of the Python hangman game? In the "course" I’m doing Python I haven’t learned to use string methods yet. It’s a very simple hangman game, with no…