Last active
February 26, 2022 06:17
-
-
Save DemonicAK/3c4e5e372374899d0cdcb0af98d158eb to your computer and use it in GitHub Desktop.
Using map method to assign values and perform functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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