69.8k views
21 votes
Which swap is successful? >>> x = 5 >>> y = 10 >>> temp = x >>> y = x >>> x= temp >>> temp = x >>> x=y >>> y = temp >>> temp = x >>> y=temp >>> x=y​

User Jpmarinier
by
4.1k points

1 Answer

3 votes

Answer:

>>> temp = x

>>> x = y

>>> y = temp

Step-by-step explanation:

got a 100% on the assignment

User Richard
by
4.3k points