Hello I'm fairly new to python but I'm trying to figure out how to assign multiple variables (in this case name and an ID number) that's already inside of a loop.
This is the example of the loop as I'm making a program that puts people in a different teams manually and then printing the current teams.
The input should be the name and ID number. So far I've tried this but don't know where to go from here. Perhaps putting them into a dictionary and somehow assigning them to a team?
team_size = int(input('What is the team size: ')) for i in range(team_size): num = num + 1 print(f'Enter students for team {num}:') temp = input().split(' ') manual_dict.update({temp[0]: temp[1]})