title: I'm making a simple long d&d recreation and everything works ok, untill when I choose my gender as a male. And then 2 characters come out not one
body: <p>Everything works fine beside the male gender print. When it's selected as a female only one name and surname of the selected race are printed on the screen. But when I select male there are two different character names. First the male one for which race I selected and then in another row a random one. I really don't know what went wrong because the male to female code is really similar and I've checked for mistakes.</p>
  <pre><code>import random
  
  #https://www.dndbeyond.com/races
  
  #DM introduction
  print(
      f&quot;Hi, my name is Lones and I will be your Dungeon Master today. I will walk you trough the simple edition of Dungeons and Dragons with different twists and rules which differ from the original. I hope you'll enjoy your stay.&quot;
  )
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #Character Introduction
  print(
      f&quot;There are 9 races between you can chose for now. I will provide you with some info on their background and strengths so that you can understand them. This game is going to be decided by luck / by roling the dice. I will provide you with the whole list after introductions in case you forgot the races.&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #1.Dragoborn
  print(f&quot;1. Dragonborn --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;Born of dragons, as their name proclaims, the dragonborn walk proudly through a world that greets them with fearful incomprehension. Shaped by draconic gods or the dragons themselves, dragonborn originally hatched from dragon eggs as a unique race, combining the best attributes of dragons and humanoids. &quot;
  )
  print(f&quot;-Strength + 2, Charisma + 1&quot;)
  print(
      f&quot;-Damage resistance to the damage type associated with draconic ancestry&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #2.Dwarf
  print(f&quot;2. Dwarf --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;Kingdoms rich in ancient grandeur, halls carved into the roots of mountains, the echoing of picks and hammers in deep mines and blazing forges, a commitment to clan and tradition, and a burning hatred of goblins and orcs—these common threads unite all dwarves. &quot;
  )
  print(f&quot;-Constitution + 2, Wisdom + 1&quot;)
  print(f&quot;-Poison resistance&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #3.Elf
  print(f&quot;3. Elf --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;Elves are a magical people of otherworldly grace, living in the world but not entirely part of it. They live in places of ethereal beauty, in the midst of ancient forests or in silvery spires glittering with faerie light, where soft music drifts through the air and gentle fragrances waft on the breeze. &quot;
  )
  print(f&quot;-Dexterity + 2, Intelligence + 1&quot;)
  print(f&quot;-Perception skill&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #4.Gnome
  print(f&quot;4. Gnome --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;A constant hum of busy activity pervades the warrens and neighborhoods where gnomes form their close-knit communities. Louder sounds punctuate the hum: a crunch of grinding gears here, a minor explosion there, a yelp of surprise or triumph, and especially bursts of laughter.  &quot;
  )
  print(f&quot;-Intelligence + 2, Dexterity + 1&quot;)
  print(f&quot;-Stone Camouflage&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #5.Half-Elf
  print(f&quot;5. Half-Elf --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;Walking in two worlds but truly belonging to neither, half-elves combine what some say are the best qualities of their elf and human parents: human curiosity, inventiveness, and ambition tempered by the refined senses, love of nature, and artistic tastes of the elves. Some half-elves live among humans, set apart by their emotional and physical differences, watching friends and loved ones age while time barely touches them.  &quot;
  )
  print(f&quot;-Charisma + 2, two abilities scores of your choice + 1&quot;)
  print(f&quot;-You gain proficiency in two skills of your choice.&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #6.Halfing
  print(f&quot;6. Halfing --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;The comforts of home are the goals of most halflings’ lives: a place to settle in peace and quiet, far from marauding monsters and clashing armies; a blazing fire and a generous meal; fine drink and fine conversation. Though some halflings live out their days in remote agricultural communities, others form nomadic bands that travel constantly, lured by the open road and the wide horizon to discover the wonders of new lands and peoples. &quot;
  )
  print(f&quot;-Dexterity + 2, Charisma + 1&quot;)
  print(f&quot;-Naturally Stealthy, Lucky and Brave&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #7.Half-Orc
  print(f&quot;7. Half-Orc --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;Whether united under the leadership of a mighty warlock or having fought to a standstill after years of conflict, orc and human tribes sometimes form alliances, joining forces into a larger horde to the terror of civilized lands nearby. When these alliances are sealed by marriages, half-orcs are born.  &quot;
  )
  print(f&quot;-Strength + 2, Dexterity + 1&quot;)
  print(f&quot;-Intimidation skill&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #8.Human
  print(f&quot;8. Human --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;In the reckonings of most worlds, humans are the youngest of the common races, late to arrive on the world scene and short-lived in comparison to dwarves, elves, and dragons. Perhaps it is because of their shorter lives that they strive to achieve as much as they can in the years they are given.  &quot;
  )
  print(
      f&quot;-Each ability score + 1, you gain proficiency in one skill of your choice&quot;
  )
  print(f&quot;-Intimidation skill&quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  #9.Tiefling
  print(f&quot;9. Tiefling --&gt;&quot;)
  print(f&quot;   '  &quot;)
  print(f&quot;----------------&quot;)
  
  input()
  
  print(
      f&quot;To be greeted with stares and whispers, to suffer violence and insult on the street, to see mistrust and fear in every eye: this is the lot of the tiefling. And to twist the knife, tieflings know that this is because a pact struck generations ago infused the essence of Asmodeus—overlord of the Nine Hells—into their bloodline.  &quot;
  )
  print(f&quot;Charisma + 2, Intelligence + 1&quot;)
  print(f&quot;-Intimidation skill&quot;)
  print(f&quot;-Fire Resistance&quot;)
  print(f&quot;------------------------------------&quot;)
  
  input()
  
  print(f&quot;1. Dragonborn --&gt;&quot;)
  print(f&quot;2. Dwarf --&gt;&quot;)
  print(f&quot;3. Elf --&gt;&quot;)
  print(f&quot;4. Gnome --&gt;&quot;)
  print(f&quot;5. Half-Elf --&gt;&quot;)
  print(f&quot;6. Halfing --&gt;&quot;)
  print(f&quot;7. Half-Orc --&gt;&quot;)
  print(f&quot;8. Human --&gt;&quot;)
  print(f&quot;9. Tiefling --&gt;&quot;)
  
  print(f&quot;----------------&quot;)
  
  Dragonborn = 1
  Dwarf = 2
  Elf = 3
  Gnome = 4
  Half_Elf = 5
  Halfing = 6
  Half_Orc = 7
  Human = 8
  Tiefling = 9
  
  
  input()
  
  dice = random.randrange(1, 9)
  dice1 = random.randrange(1, 9)
  
  
  if (dice == Dragonborn):
      print(f&quot;You got Dragonborn&quot;)
  elif (dice == Dwarf):
      print(f&quot;You got Dwarf&quot;)
  elif (dice == Elf):
      print(f&quot;You got Elf&quot;)
  elif (dice == Gnome):
      print(f&quot;You got Gnome&quot;)
  elif (dice == Half_Elf):
      print(f&quot;You got Half-Elf&quot;)
  elif (dice == Halfing):
      print(f&quot;You got Halfing&quot;)
  elif (dice == Half_Orc):
      print(f&quot;You got Half-Orc&quot;)
  elif (dice == Human):
      print(f&quot;You got Human&quot;)
  elif (dice == Tiefling):
      print(f&quot;You got Tiefling&quot;)
  
  print(f&quot;----------------&quot;)
  
  response = input(f&quot;If you're happy by the choice of your dice type continue and if you aren't type reroll: &quot;)
  if(response == &quot;continue&quot;):
    print(f&quot;You wish to continue the game&quot;)
  elif(response == &quot;reroll&quot;):
    print(f&quot;You wish to reroll the dice. This is your last roll this round.&quot;)
    if (dice1 == Dragonborn):
      print(f&quot;You got Dragonborn&quot;)
    elif (dice1 == Dwarf):
      print(f&quot;You got Dwarf&quot;)
    elif (dice1 == Elf):
      print(f&quot;You got Elf&quot;)
    elif (dice1 == Gnome):
      print(f&quot;You got Gnome&quot;)
    elif (dice1 == Half_Elf):
      print(f&quot;You got Half-Elf&quot;)
    elif (dice1 == Halfing):
      print(f&quot;You got Halfing&quot;)
    elif (dice1 == Half_Orc):
      print(f&quot;You got Half-Orc&quot;)
    elif (dice1 == Human):
      print(f&quot;You got Human&quot;)
    elif (dice1 == Tiefling):
      print(f&quot;You got Tiefling&quot;)
  else:
    print(&quot;You didn't type what I told you to&quot;)
  
  print(f&quot;----------------&quot;)
  
  #Identity for Dragonborn
  nameM1 = [&quot;Arjhan&quot;, &quot;Balasar&quot;, &quot;Bharash&quot;, &quot;Donaar&quot;, &quot;Ghesh&quot;, &quot;Heskan&quot;, &quot;Kriv&quot;, &quot;Medrash&quot;, &quot;Mehen&quot;,&quot;Nadarr&quot;, &quot;Pandjed&quot;, &quot;Patrin&quot;,&quot;Rhogar&quot;, &quot;Shamash&quot;, &quot;Shedinn&quot;, &quot;Tarhun&quot;, &quot;Torinn&quot;]
  nameF1 = [&quot;Akra&quot;, &quot;Biri&quot;, &quot;Daar&quot;, &quot;Farideh&quot;, &quot;Harann&quot;, &quot;Havilar&quot;, &quot;Jheri&quot;, &quot;Kava&quot;, &quot;Korinn&quot;, &quot;Mishann&quot;, &quot;Nala&quot;, &quot;Perra&quot;, &quot;Raiann&quot;, &quot;Sora&quot;, &quot;Surina&quot;, &quot;Thava&quot;, &quot;Uadjit&quot;]
  surname1 = [&quot;Clethtinthiallor&quot;, &quot;Daardendrian&quot;, &quot;Delmirev&quot;, &quot;Drachedandion&quot;, &quot;Fenkenkabradon&quot;, &quot;Kepeshkmolik&quot;, &quot;Kerrhylon&quot;, &quot;Kimbatuul&quot;, &quot;Linxakasendalor&quot;, &quot;Myastan&quot;, &quot;Nemmonis&quot;,&quot;Norixius&quot;, &quot;Ophinshtalajiir&quot;, &quot;Prexijandilin&quot;, &quot;Shestendeliath&quot;, &quot;Turnuroth&quot;, &quot;Verthisathurgiesh&quot;, &quot;Yarjerit&quot;]
  
  gender = input(&quot;If you want your character to be male type M and if you want your character bo female type F: &quot;)
  
  Dragonborn_Mname = random.choice(nameM1) + &quot; &quot; + random.choice(surname1)
  Dragonborn_Fname = random.choice(nameF1) + &quot; &quot; + random.choice(surname1)
  
  if(dice == Dragonborn or dice1 == Dragonborn and gender == &quot;M&quot;):
    print(f&quot;Your name is {Dragonborn_Mname}&quot;)
  elif(dice == Dragonborn or dice1 == Dragonborn and gender == &quot;F&quot;):
    print(f&quot;Your name is {Dragonborn_Fname}&quot;)
  
  
  #Identity for Dwarf
  nameM2 = [&quot;Adrik&quot;, &quot;Alberich&quot;, &quot;Baern&quot;, &quot;Barendd&quot;, &quot;Brottor&quot;, &quot;Bruenor&quot;, &quot;Dain&quot;, &quot;Darrak&quot;, &quot;Delg&quot;,&quot;Eberk&quot;, &quot;Einkil&quot;, &quot;Fargrim&quot;, &quot;Flint&quot;, &quot;Gardain&quot;, &quot;Harbek&quot;, &quot;Kildrak&quot;, &quot;Morgran&quot;, &quot;Orsik&quot;, &quot;Oskar&quot;, &quot;Rangrim&quot;, &quot;Rurik&quot;, &quot;Taklinn&quot;, &quot;Thoradin&quot;, &quot;Thorin&quot;, &quot;Tordek&quot;, &quot;Traubon&quot;, &quot;Travok&quot;, &quot;Ulfgar&quot;, &quot;Veit&quot;, &quot;Vondal&quot;]
  nameF2 = [&quot;Amber&quot;, &quot;Artin&quot;, &quot;Audhild&quot;, &quot;Bardryn&quot;, &quot;Dagnal&quot;, &quot;Diesa&quot;, &quot;Eldeth&quot;, &quot;Falkrunn&quot;, &quot;Finellen&quot;, &quot;Gunnloda&quot;, &quot;Gurdis&quot;, &quot;Helja&quot;, &quot;Hlin&quot;, &quot;Kathra&quot;, &quot;Kristryd&quot;, &quot;Ilde&quot;, &quot;Liftrasa&quot;, &quot;Mardred&quot;, &quot;Riswynn&quot;, &quot;Sannl&quot;, &quot;Torbera&quot;, &quot;Torgga&quot;, &quot;Vistra&quot;]
  surname2 = [&quot;Balderk&quot;, &quot;Battlehammer&quot;, &quot;Brawnanvil&quot;, &quot;Dankil&quot;, &quot;Fireforge&quot;, &quot;Frostbeard&quot;,&quot;Gorunn&quot;, &quot;Holderhek&quot;, &quot;Ironfist&quot;, &quot;Loderr&quot;, &quot;Lutgehr&quot;, &quot;Rumnaheim&quot;, &quot;Strakeln&quot;, &quot;Torunn&quot;, &quot;Ungart&quot;]
  
  Dwarf_Mname = random.choice(nameM2) + &quot; &quot; + random.choice(surname2)
  Dwarf_Fname = random.choice(nameF2) + &quot; &quot; + random.choice(surname2)
  
  if (dice == Dwarf or dice1 == Dwarf and gender == &quot;M&quot;):
      print(f&quot;Your name is {Dwarf_Mname}&quot;)
  elif (dice == Dwarf or dice1 == Dwarf and gender == &quot;F&quot;):
      print(f&quot;Your name is {Dwarf_Fname}&quot;)
  
  #Identity for Elf
  nameM3 = [&quot;Adran&quot;, &quot;Aelar&quot;, &quot;Aramil&quot;, &quot;Arannis&quot;, &quot;Aust&quot;, &quot;Beiro&quot;, &quot;Berrian&quot;, &quot;Carric&quot;, &quot;Enialis&quot;, &quot;Erdan&quot;, &quot;Erevan&quot;, &quot;Galinndan&quot;, &quot;Hadarai&quot;, &quot;Heian&quot;, &quot;Himo&quot;, &quot;Immeral&quot;, &quot;Ivellios&quot;, &quot;Laucian&quot;, &quot;Mindartis&quot;, &quot;Paelias&quot;, &quot;Peren&quot;, &quot;Quarion&quot;, &quot;Riardon&quot;, &quot;Rolen&quot;, &quot;Soveliss&quot;, &quot;Thamior&quot;, &quot;Tharivol&quot;, &quot;Theren&quot;, &quot;Varis&quot;]
  nameF3 = [&quot;Adrie&quot;, &quot;Althaea&quot;, &quot;Anastrianna&quot;, &quot;Andraste&quot;, &quot;Antinua&quot;, &quot;Bethrynna&quot;, &quot;Birel&quot;, &quot;Caelynn&quot;, &quot;Drusilia&quot;, &quot;Enna&quot;, &quot;Felosial&quot;, &quot;Ielenia&quot;, &quot;Jelenneth&quot;, &quot;Keyleth&quot;, &quot;Leshanna&quot;, &quot;Lia&quot;, &quot;Meriele&quot;, &quot;Mialee&quot;, &quot;Naivara&quot;, &quot;Quelenna&quot;, &quot;Quillathe&quot;, &quot;Sariel&quot;, &quot;Shanairra&quot;, &quot;Shava&quot;, &quot;Silaqui&quot;, &quot;Theirastra&quot;, &quot;Thia&quot;, &quot;Vadania&quot;, &quot;Valanthe&quot;, &quot;Xanaphia&quot;]
  surname3 = [&quot;Amakiir&quot;, &quot;Amastacia&quot;, &quot;Galanodel&quot;, &quot;Holimion&quot;, &quot;Ilphelkiir&quot;, &quot;Liadon&quot;, &quot;Meliamne&quot; , &quot;Naïlo&quot;, &quot;Siannodel&quot;, &quot;Xiloscient&quot;]
  
  Elf_Mname = random.choice(nameM3) + &quot; &quot; + random.choice(surname3)
  Elf_Fname = random.choice(nameF3) + &quot; &quot; + random.choice(surname3)
  
  if (dice == Elf or dice1 == Elf and gender == &quot;M&quot;):
      print(f&quot;Your name is {Elf_Mname}&quot;)
  elif (dice == Elf or dice1 == Elf and gender == &quot;F&quot;):
      print(f&quot;Your name is {Elf_Fname}&quot;)
  
  #Identity for Gnome
  nameM4 = [&quot;Alston&quot;, &quot;Alvyn&quot;, &quot;Boddynock&quot;, &quot;Brocc&quot;, &quot;Burgell&quot;, &quot;Dimble&quot;, &quot;Eldon&quot;, &quot;Erky&quot;, &quot;Fonkin&quot;, &quot;Frug&quot;, &quot;Gerbo&quot;, &quot;Gimble&quot;, &quot;Glim&quot;, &quot;Jebeddo&quot;, &quot;Kellen&quot;, &quot;Namfoodle&quot;, &quot;Orryn&quot;, &quot;Roondar&quot;, &quot;Seebo&quot;, &quot;Sindri&quot;, &quot;Warryn&quot;, &quot;Wrenn&quot;, &quot;Zook&quot;]
  nameF4 = [&quot;Bimpnottin&quot;, &quot;Breena&quot;, &quot;Caramip&quot;,&quot;Carlin&quot;, &quot;Donella&quot;, &quot;Duvamil&quot;, &quot;Ella&quot;, &quot;Ellyjobell&quot;, &quot;Ellywick&quot;, &quot;Lilli&quot;, &quot;Loopmottin&quot;, &quot;Lorilla&quot;, &quot;Mardnab&quot;, &quot;Nissa&quot;, &quot;Nyx&quot;, &quot;Oda&quot;, &quot;Orla&quot;, &quot;Roywyn&quot;, &quot;Shamil&quot;, &quot;Tana&quot;, &quot;Waywocket&quot;, &quot;Zanna&quot;]
  surname4 = [&quot;Beren&quot;, &quot;Daergel&quot;, &quot;Folkor&quot;, &quot;Garrick&quot;, &quot;Nackle&quot;, &quot;Murnig&quot;, &quot;Ningel&quot;, &quot;Raulnor&quot;, &quot;Scheppen&quot;, &quot;Timbers&quot;, &quot;Turen&quot;]
  
  Gnome_Mname = random.choice(nameM4) + &quot; &quot; + random.choice(surname4)
  Gnome_Fname = random.choice(nameF4) + &quot; &quot; + random.choice(surname4)
  
  if (dice == Gnome or dice1 == Gnome and gender == &quot;M&quot;):
      print(f&quot;Your name is {Gnome_Mname}&quot;)
  elif (dice == Gnome or dice1 == Gnome and gender == &quot;F&quot;):
      print(f&quot;Your name is {Gnome_Mname}&quot;)
  
  #Identity for Half-Elf
  if (dice == Half_Elf or dice1 == Half_Elf and gender == &quot;M&quot;):
      print(f&quot;Half-elves use either human or elven naming conventions. You can type your own name for your character, make sure it's meant for a male, first type the name and then the last name.&quot;)
      Half_Elf_Mname = input(&quot;Your name is: &quot;)
  elif (dice == Half_Elf or dice1 == Half_Elf and gender == &quot;F&quot;):
      print(f&quot;Half-elves use either human or elven naming conventions. You can type your own name for your character, make sure it's meant for a female, first type the name and then the last name.&quot;)
      Half_Elf_Fname = input(&quot;Your name is: &quot;)
  
  #Identity for Halfing
  nameM6 = [&quot;Alton&quot;, &quot;Ander&quot;, &quot;Cade&quot;, &quot;Corrin&quot;, &quot;Eldon&quot;, &quot;Errich&quot;, &quot;Finnan&quot;, &quot;Garret&quot;, &quot;Lindal&quot;, &quot;Lyle&quot;, &quot;Merric&quot;, &quot;Milo&quot;, &quot;Osborn&quot;, &quot;Perrin&quot;, &quot;Reed&quot;, &quot;Roscoe&quot;, &quot;Wellby&quot;]
  nameF6 = [&quot;Andry&quot;, &quot;Bree&quot;, &quot;Callie&quot;, &quot;Cora&quot;, &quot;Euphemia&quot;, &quot;Jillian&quot;, &quot;Kithri&quot;, &quot;Lavinia&quot;, &quot;Lidda&quot;, &quot;Merla&quot;, &quot;Nedda&quot;, &quot;Paela&quot;, &quot;Portia&quot;, &quot;Seraphina&quot;, &quot;Shaena&quot;, &quot;Trym&quot;, &quot;Vani&quot;, &quot;Verna&quot;]
  surname6 = [&quot;Brushgather&quot;, &quot;Goodbarrel&quot;, &quot;Greenbottle&quot;, &quot;High-hill&quot;, &quot;Hilltopple&quot;, &quot;Leagallow&quot;, &quot;Tealeaf&quot;, &quot;Thorngage&quot;, &quot;Tosscobble&quot;, &quot;Underbough&quot;]
  
  Halfing_Mname = random.choice(nameM6) + &quot; &quot; + random.choice(surname6)
  Halfing_Fname = random.choice(nameF6) + &quot; &quot; + random.choice(surname6)
  
  if (dice == Halfing or dice1 == Halfing and gender == &quot;M&quot;):
      print(f&quot;Your name is {Halfing_Mname}&quot;)
  elif (dice == Halfing or dice1 == Halfing and gender == &quot;F&quot;):
      print(f&quot;Your name is {Halfing_Fname}&quot;)
  
  #Identity for Half-Orc
  nameM7 = [&quot;Dench&quot;, &quot;Feng&quot;, &quot;Gell&quot;, &quot;Henk&quot;, &quot;Holg&quot;, &quot;Imsh&quot;, &quot;Keth&quot;, &quot;Krusk&quot;, &quot;Mhurren&quot;, &quot;Ront&quot;, &quot;Shump&quot;, &quot;Thokk&quot;]
  nameF7 = [&quot;Baggi&quot;, &quot;Emen&quot;, &quot;Engong&quot;, &quot;Kansif&quot;, &quot;Myev&quot;, &quot;Neega&quot;, &quot;Ovak&quot;, &quot;Ownka&quot;, &quot;Shautha&quot;, &quot;Sutha&quot;, &quot;Vola&quot;, &quot;Volen&quot;, &quot;Yevelda&quot;]
  
  
  Half_Orc_Mname = random.choice(nameM7) 
  Half_Orc_Fname = random.choice(nameF7)
  
  if (dice == Half_Orc or dice1 == Half_Orc and gender == &quot;M&quot;):
      print(f&quot;Your name is {Half_Orc_Mname}&quot;)
  elif (dice == Half_Orc or dice1 == Half_Orc and gender == &quot;F&quot;):
      print(f&quot;Your name is {Half_Orc_Mname}&quot;)
  
  #Identity for Human
  if (dice == Human or dice1 == Human and gender == &quot;M&quot;):
      print(f&quot;Being a human yourself I'll let you name your character, make sure it's meant for a male, first type the name and then the last name.&quot;)
      Human_Mname = input(&quot;Your name is: &quot;)
  elif (dice == Human or dice1 == Human and gender == &quot;F&quot;):
      print(f&quot;Being a human yourself I'll let you name your character, make sure it's meant for a female, first type the name and then the last name.&quot;)
      Human_Fname = input(&quot;Your name is: &quot;)
  
  #Identity for Tiefling
  nameM9 = [&quot;Akmenos&quot;, &quot;Amnon&quot;, &quot;Barakas&quot;, &quot;Damakos&quot;, &quot;Ekemon&quot;, &quot;Iados&quot;, &quot;Kairon&quot;, &quot;Leucis&quot;, &quot;Melech&quot;, &quot;Mordai&quot;, &quot;Morthos&quot;, &quot;Pelaios&quot;, &quot;Skamos&quot;, &quot;Therai&quot;]
  nameF9 = [&quot;Akta&quot;, &quot;Anakis&quot;, &quot;Bryseis&quot;, &quot;Criella&quot;, &quot;Damaia&quot;, &quot;Ea&quot;, &quot;Kallista&quot;, &quot;Lerissa&quot;, &quot;Makaria&quot;, &quot;Nemeia&quot;, &quot;Orianna&quot;, &quot;Phelaia&quot;, &quot;Rieta&quot;]
  surname9 = [&quot;Art&quot;, &quot;Carrion&quot;, &quot;Chant&quot;, &quot;Creed&quot;, &quot;Despair&quot;, &quot;Excellence&quot;, &quot;Fear&quot;, &quot;Glory&quot;, &quot;Hope&quot;, &quot;Ideal&quot;, &quot;Music&quot;, &quot;Nowhere&quot;, &quot;Open&quot;, &quot;Poetry&quot;, &quot;Quest&quot;, &quot;Random&quot;, &quot;Reverence&quot;, &quot;Sorrow&quot;, &quot;Temerity&quot;, &quot;Torment&quot;, &quot;Weary&quot;]
  
  Tiefling_Mname = random.choice(nameM9) + &quot; &quot; + random.choice(surname9)
  Tiefling_Fname = random.choice(nameF9) + &quot; &quot; + random.choice(surname9)
  
  if (dice == Tiefling or dice1 == Tiefling and gender == &quot;M&quot;):
      print(f&quot;Your name is {Tiefling_Mname}&quot;)
  elif (dice == Tiefling or dice1 == Tiefling and gender == &quot;F&quot;):
      print(f&quot;Your name is {Tiefling_Fname}&quot;)
  
  
  print(f&quot;------------------------------------&quot;)
  </code></pre>