Posts by Allan Belem • 61 points
6 posts
-
-1
votes1
answer90
viewsQ: Convert int to str for loop
I would like the variable of input() retain its type int were only converted to string when exclusively entered with’s' digit so that I can exit the loop, without changing the while, there is some…
-
1
votes3
answers183
viewsA: Remove repeated elements using two lists
Hello, I have on account of time developed a very complicated way of getting that with two for’s possible, I proposed this way for logic purposes, and achieve the result without changing much the…
-
3
votes3
answers183
viewsQ: Remove repeated elements using two lists
How would you remove without using collections and while, only with for. I wanted a search structure element by element, because I already know how to remove this way. So I want to use at least two…
-
-1
votes1
answer72
viewsQ: Insert/change data into a file?
I am developing a program that uses a function(insert) to which adds products and precise quantities that inputs are one at a time in a file. The part of the quantities would be in a function…
-
0
votes0
answers282
viewsQ: What simple way can I run python programs?
My question is quite beginner level, excuse me. I use pycharm but I am open to other better suggestions according to my problem. I would like to run the code on the interpreter himself, but…
python-3.xasked Allan Belem 61 -
1
votes1
answer1259
viewsQ: Output in two columns
The output of my code makes a list in a column. Code: path = '/home/allan/Área de trabalho/adjetivos.txt' i = 0 lista = [] conta = 1 with open (path) as file_obj: ler = file_obj.readlines() for le…
python-3.xasked Allan Belem 61