[Tutor] (no subject)

rakesh sharma rakeshsharma14 at hotmail.com
Wed Jun 10 12:36:23 CEST 2015


I have come across this syntax in python. Embedding for loop in []. How far can things be stretched using this [].
l = [1, 2, 3, 4, 5]
q = [i*2 for i in l]
print qthanksrakesh 		 	   		  


More information about the Tutor mailing list