+ 1
How to input two rows?
Like this: 10 2 15 7 2 3
3 Respostas
+ 5
s = '''10 2
15 7
2 3'''
n = [tuple(map(int, t.split())) for t in s.split('\n')]
print(n) # [(10, 2), (15, 7), (2, 3)]
Is this what you mean?
Or maybe this => print([tuple(i) for i in zip(*n)]) # [(10, 15, 2), (2, 7, 3)]
0
no way!!!
0
Thank you very much!