Python make a list program

Publié le: 05 janvier 2017
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Python make a list program durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coding 05 janvier 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 390 fois et il a aimé 3 téléspectateurs. Bon visionnage!