Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help With While Loop and Append
Post: RE: Help With While Loop and Append

Thanks. I tried your code in python and that works just as I needed. I guess I was looking for ':' operator. I didn't understand why you wrote 'In' and 'Out' at every alternate line. I had to delete ...
laprus Homework 13 5,547 Feb-07-2019, 04:58 AM
    Thread: Help With While Loop and Append
Post: RE: Help With While Loop and Append

Ok so numbers, strings, and tuples are immutables, but lists are mutable. There was this example in link: nums = [1, 2, 3] other = nums nums.append(4) print(other) ## 1, 2, 3, 4 is there any way ...
laprus Homework 13 5,547 Feb-06-2019, 05:55 AM
    Thread: Help With While Loop and Append
Post: RE: Help With While Loop and Append

Wow! I didn't know that when I do 'any variable' = 'some other variable' the variable gets linked forever. I thought only the values are transferred. If i have to transfer only the value of the variab...
laprus Homework 13 5,547 Feb-05-2019, 05:09 AM
    Thread: Help With While Loop and Append
Post: RE: Help With While Loop and Append

Hi everyone, here's a small code that I've written that has same error. Node_Names = ['a', 'b', 'c', 'd'] Values_of_label = [1, 2, 3, 4] main_list = list() Even_Or_Odd = ['NA' ,'NA', 'NA', 'NA'] for...
laprus Homework 13 5,547 Feb-03-2019, 09:19 AM
    Thread: Help With While Loop and Append
Post: RE: Help With While Loop and Append

Thanks. I'll be careful henceforth. I'll need a day to write a similar/smaller problem with same error. Will surely do it as this problem is coming again in another code.
laprus Homework 13 5,547 Jan-31-2019, 05:25 AM
    Thread: Help With While Loop and Append
Post: Help With While Loop and Append

Hi everyone. I am using python for coding an algorithm and I'm struggling with usage of while and append. the part of code is: print('isis') print(temp11) print(main_list[9][6]) # this variable's va...
laprus Homework 13 5,547 Jan-30-2019, 11:02 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020