Python Programming 19 - Remove Elements From List within for Loop

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

This has been racking my brains for way more than I'd like to admit. Thanks!

Decimalis
Автор

This was very helpful to me - thank you so much! I now understand why my list was not showing up correctly after I removed the items.

courtneydetello
Автор

That's what i was looking for, thanks buddy !

vjarjun
Автор

Thank you very much! This was honestly very thankful.

stefmyt
Автор

thx for the video. I have been trying to exlude negatives from list with procedure and other examples in the net have had some hickup so there´s a scenario when they dont run correctly but this inddex correction was the trick for me.

guessmyname
Автор

Спасибо за видео, было очень полезно! Как раз прохожу курс по py

osipkov
Автор

thank you ..exactly what i was searching for

player
Автор

Thanks a lot. I'm a beginner in Python and I've been looking for a solution for hours.

lucasmoreira
Автор

Thanks so much mate - the perfect solution

Jimforthewin
Автор

Thank you for this.... This helped a lot.

vaibhavsarkate
Автор

Thank you, i need to learn more about PyQT5 MDI Multi Windows... i made a windows app using Python+PyQt5 Designer, Application with tabs everything was great until i needed some dialog windows to communicate with database and want the subwindows or dialogs to not open as separate windows!

nadirb
Автор

Thanku so much too help me get rid out from my problem

Piyushkumar-keri
Автор

Thank You So Much Sir . Very Helpful ❤❤❤

mdhazratali
Автор

Thanks for explanation. I was able to understand everything, but I wonder: There has to be a shorter way to write that, no? If I need to assign and reassign a new list, every time i browse through a list to remove entries, my code gets harder to understand

derikaem
Автор

i keep getting this error
"AttributeError: 'NoneType' object has no attribute 'remove'"

I have something like the following and i am very confused what's wrong

test = ['hello', 'i', 'am', 'a', 'test']
test_remove = ['am', 'a']

for item in test_remove:
test = test.remove(item)

print(test)


i would appreciate any help

chuchojuarez
Автор

Hello Caleb, thank you for the amazing work you're doing.
I have a question:
How do I test a list for it's data type? e.g. in a list of mixed data types, how do I isolate the strings, integers etc from a list and assing their value to another list?

anthonyiloenyosi
Автор

hie caleb please make video's on java programming language core and advance both.

aniketgaikwad
Автор

i am stuck in this problem
my source code :

import pyautogui
f = open('text.txt', 'r')
for word in f:
pyautogui.typewrite(word)
pyautogui.press("enter")
this is spam code. i wanted that after writing first line of text file and enter ... it should delete that file to where i have written ...and then again write 2 line and should delete the line after entering it

adarshdhiman
Автор

super helfpful... i couldn't figure out why the for loop i created to solve the healthy food problem in videos 5 and 6 didn't work.

TheEighthAct
Автор

How generate 6 digit OTP without using random & radiant function, using:list, loop function please reply i need help

vraj