r/pythonhelp • u/Luis20004k • Oct 23 '20
python help
I am trying to assign auto generated players I have coded to teams on python
here is wht I have coded so far

import random
offence_score = random.randint(50,99)-20
defence_score = offence_score - 10
overall = offence_score + defence_score
first_names =("bill", "lebron", "lucas", "luis","tommy", "jack", "sam", "toby", "richy", "devonte", "micheal", "blake", "JJ", "steph", "kevin","liam","Elijah","Benjamin","Mason",)
second_names=("chika", "gray", "durant", "james","Jordan", "paul", "marcus", "jason","andy","Jon","Bill","Maria","john',cain","oliver","Ethan","Henry","Logan","sebastain","wyatt")
def players(list1,list2):
players= random.choice(list1)+" "+random.choice(list2)
return(players)
for i in range(1,20):
print("the player overall is:",overall,"the player is name is :",players(first_names,second_names))
print("-------------------------------------------------------")
#---------------------------------------------------------------------------------------------------
teams= ("Atlanta hawks","Golden state","orlando magic","Denvier park")
1
u/Luis20004k Oct 26 '20
Pls answer 🥺