Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- print(f'Before:\na = {a}\nb = {b}')
- x = a
- a = b
- b = x
- print(f'After:\na = {a}\nb = {b}')
- Решение с масив:
- info = [int(input()), int(input())]
- print(f'Before:\na = {info[0]}\nb = {info[1]}')
- info.reverse()
- print(f'After:\na = {info[0]}\nb = {info[1]}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement