Pythonランダム抽選を実現


from random import choice
import time
#import BME1_name_list
name_lists=[
    "  ",
    "   ",
    "   ",
    "   ",
    "  ",
    "   ",
    "  ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "  ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ", 
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "  ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "  ",
    "  ",
    "  ",
    "  ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "    ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   ",
    "   "
    ]
print("

\t\t\t\tBME1
"
) time.sleep(3) print("
\t\t\t 、 、
"
) time.sleep(3) print("\t\t\t 62 ") time.sleep(1) lucky_dogs_needed = int(input("\t :")) print('
'
) lucky_dogs=[] lucky_dogs_num = 1 while lucky_dogs_num <= lucky_dogs_needed: lucky_dog = choice(name_lists) if lucky_dog not in lucky_dogs: lucky_dogs.append(lucky_dog) print(f"\t\t\t{lucky_dogs_num}.{lucky_dog}") lucky_dogs_num +=1 time.sleep(2) input("
\t\t\t !"
)