Python make a list program

Veröffentlicht am: 05 Januar 2017
auf dem Kanal: Coding
390
3

Within this Python video, I will show you how to make your own program that makes and shows list.

LINK: https://www.dropbox.com/sh/6rw4qmef4l...
(Go to coding, python, and list. This link and what is in it is for you the viewers.)

https://github.com/crua9/Python-list-...

CODE: (Note it had to be edited to fit in here, this code doesn't work)

make a list to hold onto our items
the_list = []

def show_help():
print out instructions on how to use the app
print("What do you want to add to the list?")
print("""
Enter 'DONE' to end the program.
Enter 'HELP' for this help.
Enter 'SHOW' to see your current list.
""")

def show_list():
print out the list
print("Here's your list:")

for item in the_list:
print(item)

def add_to_list(new_item):
add new items to our list
the_list.append(new_item)
print("Added {}. List now has {} items.".format(new_item, len(the_list)))

show_help()

while True:
ask for new items
new_item = input("")

be able to quit the app
if new_item == 'DONE':
break
elif new_item == 'HELP':
show_help()
continue
elif new_item == 'SHOW':
show_list()
continue
add_to_list(new_item)

show_list()


_-_-Please feel free to ask questions, and sub_-_

Email↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
CraigBennettII@techreviewsandhelp.com

Links that help us if you check them out
↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
Linkedin:   / craigbennettii  
Reddit:   / techreviewsandhelp  
Git: https://github.com/crua9/
Our website: http://techreviewsandhelp.com
Our channel:    / techrhelp  
Donate: https://www.paypal.com/cgi-bin/webscr...
Patreon/donate:   / techreviewsandhelp  
  / techrhelp  
__
#music #asmr #computer #technology


Auf dieser Seite können Sie das Online-Video Python make a list program mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding 05 Januar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 390 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!