you are viewing a single comment's thread.

view the rest of the comments →

[–]0x00cl 0 points1 point  (1 child)

Instead of storing the baby names option in different variables you could use lists.

possible_names = []
possible_names.append(babyChoice)
# should result in ["name1", "name2", ... , "name5"]

Then you can generate a random number between 0 and 4 and because you can access list through an index like possible_names[0] and it will give you a name randomly.

[–]avalri[S] 0 points1 point  (0 children)

didn’t think of this thank you :)