how to merge object/string array in django-python?

I have a code in my django that it look like this:

firstname = ['Mark', 'Kate']
lastname = ['Brown', 'White']

and the out-put should be like this

person = [['Mark', 'Brown']
           ['Kate', 'White']]

can anyone can give me some hint or sample code on how to get the output? i try to use this method:

person = firstname + lastname

but the output is :

['Mark', 'Kate', 'Brown', 'White']

thanks in advance


You can use: zip(firstname, lastmane)

Need Your Help

CSS Button in IE

css internet-explorer css3

I have a button created with CSS that works great in Firefox and Chrome but not IE...

Polymer using core-selector - how to set selected value with array

javascript html polymer web-component

I am using polymer 0.5 and specificly the core-selector element:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.