Posts by Radis Silva • 39 points
5 posts
-
0
votes1
answer18
viewsA: I need to read the value of a variable that is local declared in a function, by scoping another function, in Python script
In function um is asking to print the amount x, the correct one would return this value. Already in the function dois, the variable y receives the concatenation of two strings: 'bcd' and x. I…
python-3.xanswered Radis Silva 39 -
-1
votes1
answer58
viewsQ: How to not write the header to a CSV every time you update the file
When I create a CSV file with header, every time I try to insert new items the header repeats. # Escrevendo o arquivo with open('Gerador.csv', 'a', newline='', encoding='utf-8') as gravar:…
-
0
votes2
answers45
viewsA: Problem with data entry
Hello! I am also beginner and analyzing your code I managed to run it as follows. I think a "loop" cannot be inside a "Try" since "Try/except" always ends the program. # Variavel do tipo string para…
pythonanswered Radis Silva 39 -
1
votes1
answer94
viewsQ: Studying lists
I have two lists, the first call from cadastro and the second call from entrada. I remove an item from the list entrada and then I want to return this item in case it’s on the list cadastro, but I…
-
-2
votes1
answer54
viewsQ: Get the lowest value with the map in a Dict
I’m studying the function map() And I was wondering if there’s any way I could retrieve the least value from a dictionary within a list. The way I’m doing I’m only managing to change all values.…