Python Programming 38 - Loop to Fill List From User Input

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


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

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

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

Hey guys,
check this out.

print("Print your favourite food items.")
print("press enter after every item and hit q to quit the program.")
favs = []
while True:
data = input("Enter an item: ")
if data.lower() == "q":
break

favs.append(data)

count = 0
while True:
for food in favs:
count += 1
print(f"{count}. your item: {food}")
break

harshithjvs
Автор

Wonderful, easy to follow and understand and the added in humor was great. Thank you for this guide.

chrantheman
Автор

Thanks, finally a video that actually helped. keep up man

maximilianhasenmuller
Автор

Thank the lord I'm a semi new programmer and this video helped me out sooo much you have no idea

themostbluefox
Автор

You are Genius! The best Python tutorial on youtube. keep it up brother.

media
Автор

Thank you so much, greetings from Brazil!

Stealerwolf
Автор

Thank you so much! This information is very helpful. I will be subscribing.

joshuacarter
Автор

Thank you for such an entertaining and informational video! keep it up man

RA-pujo
Автор

Great dude! Thanks for sharing... worked like a charm :)

ChiMediaProductions
Автор

let's say i want to populate the set with numbers only, how would I do that without adding the q value into the list

abnetbezabh
Автор

Wait um how did you get all the three inputs separately can it be clarified please?

halasyamv
Автор

You are fab !!!! thank you for explaining Python good!!!

felisabenito
Автор

I think this solves the issue I'm having. I'll try it soon.

rmt
Автор

Nice one bro it's very useful to me once again thank you bro

telugucinemastudio
Автор

It keeps closing the program after I type q. Help!

rmt
Автор

Trying to achieve this with sqlite insert statement into a table with 6 fields. Unlucky so far with it but trying :-/

ShyneflowLC
Автор

Hi Caleb, i forgot my Facebook password can you restore it with Python, how can i collect that data?

AntiRacistWarrior
Автор

What if i want the to type in something like, "Do you want to continue? Y/N" so that i click N if i want to continue, N if i want to print it out. Help.

myerwerl
Автор

is there a way to make it print "You said: [insert list here]"
and not
"You said: a"
"You said: b"
"You said: c"

Colbrow
Автор

Thank you so much. I was stuck on this project. It really helped me a lot.

kemribajwa
join shbcf.ru