#python 3.7
import random as r
a=[r.randint(0,100) for i in range(2)]
print(a[1],a[0])
a[1],a[0]=a[0],a[1]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#python 3.7
import random as r
a=[r.randint(0,100) for i in range(2)]
print(a[1],a[0])
a[1],a[0]=a[0],a[1]
print(a[1],a[0])