I am new to coding (started learning Python a week ago) and I'm having trouble with this code that prompts the user for one of two players' names (Shai Gilgeous-Alexander and Josh Giddey) and the stat they need for the player (Points, Rebounds etc). However, every time I run my code, no matter what I put in the input it will only output the Points averaged for Shai-Gilgeous Alexander.
def main():
player_name = input("Which player on OKC Thunder's starting 5 is stats needed for?: ")
stats_name = input("Which stat is needed for said player? (or say \"stats\" for all stats): ")
okc_starting_5(player_name, stats_name)
def okc_starting_5(p, s):
if 'shai' or 'Shai Gilgeous-Alexander' or 'SGA' in p.lower().strip() and 'points' or 'pts' in s.lower().strip():
print("Shai averaged 31.4 points per game in the 2022-23 NBA Regular Season")
elif 'shai' or 'Shai Gilgeous-Alexander' or 'SGA' in p.lower().strip() and 'rebounds' or 'reb' in s.lower().strip:
print("Shai averaged 4.8 rebounds per game in the 2022-23 NBA Regular Season")
elif 'shai' or 'Shai Gilgeous-Alexander' or 'SGA' in p.lower().strip() and 'assists' or 'ast' in s.lower().strip:
print("Shai averaged 5.5 assists per game in the 2022-23 NBA Regular Season")
elif 'shai' or 'Shai Gilgeous-Alexander' or 'SGA' in p.lower().strip() and 'stats' in s.lower().strip:
print("Shai averaged 31.4 points, 4.8 rebounds and 5.5 assists in the 2022-23 NBA Regular Season")
elif 'josh' or 'josh giddey' or 'giddey' in p.lower().strip() and 'points' or 'pts' in s.lower().strip():
print("Josh averaged 16.6 points per game in the 2022-23 NBA Regular Season")
elif 'josh' or 'josh giddey' or 'giddey' in p.lower().strip() and 'rebounds' or 'reb' in s.lower().strip():
print("Josh averaged 7.9 rebounds per game in the 2022-23 NBA Regular Season")
elif 'josh' or 'josh giddey' or 'giddey' in p.lower().strip() and 'assists' or 'ast' in s.lower().strip():
print("Josh averaged 6.2 assists per game in the 2022-23 NBA Regular Season")
elif 'josh' or 'josh giddey' or 'giddey' in p.lower().strip() and 'stats' in s.lower().strip():
print("Josh averaged 16.6 points, 7.9 rebounds and 6.2 assists in the 2022-23 NBA Regular Season")
else:
print("I cannot determine which statistics you need with this information. Please try again. ")
main()
It doesn't matter what input I type in the program it will always just print "Shai averaged 31.4 points per game in the 2022-23 NBA Regular Season". The else statement never even prints no matter what I type, could anyone help?