Skip to content

Instantly share code, notes, and snippets.

@DemonicAK
Last active February 26, 2022 06:17
Show Gist options
  • Save DemonicAK/3c4e5e372374899d0cdcb0af98d158eb to your computer and use it in GitHub Desktop.
Save DemonicAK/3c4e5e372374899d0cdcb0af98d158eb to your computer and use it in GitHub Desktop.
Using map method to assign values and perform functions
#Read the number of test cases.
T = int(input('enter:'))
for tc in range(T):
# Read integers a and b.
(a, b) = map(int, input().split(' '))
ans = a + b
print(ans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment