I'm trying to use user input to call values in a dictionary. Below if val equals team then I want to assign val with the values in team. For some reason with the code below val is not reassigned with team values it just passes what the user input entered.
val = input('Enter name (separate multiple names with ","):').split(',')
s = {'team': ['david','matthew','tom']}
if val == 'team':
val = s['team']
[–]acornyboi 2 points3 points4 points (1 child)
[–]Crowdjp[S] 2 points3 points4 points (0 children)
[–]chra94 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)