Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def append_to_list(list_name):
- q = input('Добавить?')
- if q == 'yes':
- word = input('слово')
- list_name.append(word)
- print('Теперь в списке {} слов'.format(len(list_name)))
- return list_name
- l=['1', '2']
- print(append_to_list(l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement