Assign three integers
Input
assign_multiple(1, 2, 3)
Output
(1, 2, 3)
All three inputs are assigned to a, b, c in one line and returned as a tuple.
Full lesson preview
Use a single assignment statement to bind multiple variables at once. Practice tuple unpacking and returning multiple values.
Problem statement
Task
Examples
Input
assign_multiple(1, 2, 3)
Output
(1, 2, 3)
All three inputs are assigned to a, b, c in one line and returned as a tuple.
Input format
Output format
Constraints
Samples
Input
assign_multiple('a', 'b', 'c')
Output
('a', 'b', 'c')
Strings are assigned and returned in the same order.