Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: my list is being changed
Post: RE: my list is being changed
Working fine! Thank you :) |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-29-2019, 02:54 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
oh my good!! i got iiiit!! finally
i used this copy.copy in the end of the code.. it was the end of it that was creating the link between the lists..
Output: if menu != 0:
... |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 09:43 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
I am very beginner but i will try it out, if i got it right i need a deep copy of the list "pedidosafe" right?
like:
deepcopy(pedidosafe.append(itens_pedido[:]))
?
or pedidosafe.deepcopy()
i don ... |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 08:56 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
so if i put some very different name it might work?
actually i remember now, i have already done it, i'v named the "pedidosafe" as "hahaha" ( i was frustrated) and the problem still persisted |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 08:30 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
if you can, create a text archive named 100 with the content:
11111
22222
33333
44444
55555
other named: 200:
00000
77777
88888
22222
300:
22222
11111
33333
44444
400:
11111
00000
500:
55555
88888... |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 08:07 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
[[11111, 22222, 33333, 44444, 55555], [0, 77777, 88888, 22222], [22222, 11111, 33333, 44444], [11111, 0], [55555, 88888], [77777, 99999, 11111], [22222, 55555, 33333, 99999], [55555, 22222, 11111, 333... |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 07:47 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
my "safe list" changes exactly after this point..
And the list I am working at this stage is not related to the one that's changing ..
pedidos[pedido1] = primeirasom
pedidos[pedido2].clear() |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-28-2019, 03:27 PM |
|
|
Thread: my list is being changed
Post: RE: my list is being changed
thats whats not being logic about it all.. if u run it it will change, don't know why
if you check, this line (21) is before the loop in which the program happens.. |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-27-2019, 11:21 PM |
|
|
Thread: my list is being changed
Post: my list is being changed
Hello guys, here again.
i got a problem i thought would not be possible, i'v created a list for being used as a data base, just for grabbing info, i made it for not being changed , but at a point of m... |
|
ivinjjunior |
General Coding Help |
15 |
5,741 |
May-27-2019, 09:55 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: RE: ValueError: invalid literal for int() with bas...
i'm using the document containing the following:
2105301
2106301
2108701
2108801
2108901
2109101
2109201
2109501 |
|
ivinjjunior |
General Coding Help |
6 |
9,163 |
Apr-20-2019, 12:59 AM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: ValueError: invalid literal for int() with base 10...
Hello everyone, here again..
i am getting a problem with a part of my coding
numero = int(input('informe o pedido\n:'))
pedido = open(f'Pedidos_test\{numero}.txt', 'r')
teste = []
testa = []
cont = 0... |
|
ivinjjunior |
General Coding Help |
6 |
9,163 |
Apr-20-2019, 12:43 AM |
|
|
Thread: Can you find the problem in my code?
Post: RE: Can you find the problem in my code?
Thank you guys, i got it solved.. it was simple.. |
|
ivinjjunior |
General Coding Help |
3 |
2,582 |
Apr-20-2019, 12:37 AM |
|
|
Thread: Can you find the problem in my code?
Post: Can you find the problem in my code?
hey everyone, back here **smile** , i got a problem with my code.. don't know it you can help due to the code that i made is a bit confusing.. but if you can help me its gonna be great!
here is the ... |
|
ivinjjunior |
General Coding Help |
3 |
2,582 |
Apr-15-2019, 07:50 PM |
|
|
Thread: adding lists to lists?
Post: RE: adding lists to lists?
Thank you guys, it worked; i used append([]) and it was exactly what i needed, very simple **smile** |
|
ivinjjunior |
General Coding Help |
5 |
3,082 |
Apr-15-2019, 07:41 PM |
|
|
Thread: adding lists to lists?
Post: adding lists to lists?
hey everyone, i'm new in coding and i really need to create logic to help me in my job..
i am having trouble with creating a way to put lists into a existing one.. for example, i would like to make a... |
|
ivinjjunior |
General Coding Help |
5 |
3,082 |
Apr-09-2019, 08:43 PM |