You are viewing a single comment's thread. Return to all comments →
Great tip! BTW is there any reason for using '_' as the dummy variable? What's wrong with using letter, for example 'i'?
_ is used to signify that even though something is being returned, we don't plan to use that variable any where.
gives the following error in above code in python 2.7.13 : at 0x7f60c947e910>
You need to put an additional  in addition to [a,b,c]. Because the output that you want is are lists within a list.
It's also an old Perl trick. If you just performed the input command without assigning the data to anything, it was still available in the $_ variable by default.
It just like a while loop (Ex: while(a<5)) . If we need to store in the seperte varible you can use like this x,y,z,a = (int(input()) for n in range(4). It will be stored seperatly
no (lol u w8ted 3yrs 4 answer ;D)
it depends on programmer what to choose , its your wish