Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

swap two lists without using third variable python

list1=["Hi how are you"]
list2=["Iam fine"]
list1,list2=list2,list1
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #swap #lists #variable #python
ADD COMMENT
Topic
Name
4+6 =