Posts by Bruno Kenzo • 68 points
4 posts
-
0
votes1
answer322
viewsA: Code creation in Pyhton
Olá Juliana! If I understand correctly, your question should receive 2 input values: Value of the price of the product purchased; Amount paid by the customer. With "inputs" (input data), we have 3…
pythonanswered Bruno Kenzo 68 -
0
votes1
answer282
viewsA: draw rectangle with hastags and ask again
Because your code works cyclically (asks for the height and width of a rectangle and prints it endlessly), you can simply start a loop while True, that will keep repeating itself endlessly. In this…
pythonanswered Bruno Kenzo 68 -
0
votes1
answer164
viewsQ: Transform column with Nan and string to integer
I have a dataframe with the following column: Years 0 1990 1 1990 2 1990 3 1991 5 NaN 4 1994 6 NaN ... ... Name: Years, Length: 9742, dtype: object I have already performed part of the cleaning of…
-
3
votes2
answers1231
viewsQ: How to add text to a specific line in Python txt file?
I am trying to store data in a txt file, but I need to save it in specific lines. How to proceed? I’d like to do something like: data = open('arquivo.txt', 'a') data[linha específica].write('Texto…