Packing a tuple and passing it to a function removes the first element
Asked by
Ned
If I run the following code, both functions seem to remove the first element from the tuple. I don't unserstand why this is the case. Any help would be appreciated
sTestId = "100"
tRounds =("Morning","0700",
)
def func1(sTestId,
print(tRounds)
def func2(sTestId,
print(tRounds)
print(tRounds)
func2(*tRounds)
func1(*tRounds)
=======
OUTPUT
=======
('0700', 'Lunch', '1200', 'Dinner', '1600')
('Lunch', '1200', 'Dinner', '1600')
('Lunch', '1200', 'Dinner', '1600')
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Eugene S
- Solved:
- Last query:
- Last reply:
To post a message you must log in.