Python make a list program

Опубликовано: 05 Январь 2017
на канале: Knowledge Hub
813
13

What I used to make my videos:
● Microphone: http://amzn.to/2yF8dUy
● Pop filter: http://amzn.to/2ArPIQu
● Webcam: http://amzn.to/2ydEvSf
● Video editing software: http://amzn.to/2Aq3nrj

👉 I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com
___

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


На этой странице сайта вы можете посмотреть видео онлайн Python make a list program длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Knowledge Hub 05 Январь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 813 раз и оно понравилось 13 зрителям. Приятного просмотра!