# coding: utf-8
import random
nameList = []
print('Make a list. Please enter your name.')
name = input('=>')
nameList.append(name)
print(name + 'Added.')
print('The name currently registered is' + '\n' +
str(nameList) + '\n' +
'is.')
answerWord = input('Do you want to add more names? yes/no?: ')
while not(answerWord == 'no' or answerWord == 'n'):
name = input('=>')
nameList.append(name)
print(name + 'Added.')
print('The current list is' + '\n' +
str(nameList) + '\n' +
'is.')
answerWord = input('Do you want to add more names? yes/no?: ')
print('Finish adding.')
print('Shuffle START!!')
random.shuffle(nameList)
print('The order is' + '\n' +
str(nameList) + '\n' +
'became.')
Recommended Posts