Trying to get my if
to either allow the user to input a name or randomly choose but no matter what is entered it goes to the input of name?
Any ideas?
Here is my snippet:
import random
import os
names = "Balo", "Bandugl", "Baroro", "Cag", "Charoth", "Dugling", "Dulko", "Fangot", "Gormath", "Varth", "Ugort", "Ogong", "Tuli", "Corg", "Chau", "Korg", "Salath", "Wegia", "Wecha", "Moroth", "Kangir", "Bethindu", "Duak", "Fagoot", "Penam"
rand_name = random.choice(names)
#Character creation (1)#
if input("Would you like to choose a name?: ") == "Y" or "y" or "yes" or "YES":
print("")
c1 = {"Name":input("Name: ")}
else:
c1 = {"Name":rand_name}
print(c1)
Thanks in advance!