A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/111520.html below:

How to create 3 dimension array from 1 & 2 dimension arrray

How to create 3 dimension array from 1 & 2 dimension arrrayKlaus Bruns Klaus.Bruns at teleatlas.com
Fri Apr 27 05:26:01 EDT 2001
Tawee Laoitichote wrote:

> Dear,
>
> I have 1 dimension array having shape like (3,) and 2 dimension array;
> (4,4). Then, I want to create new array from these two arrays having new
> dimension as (3,4,4), Help please!

try this:

>>> l1 = (3,)
>>> l2 = (4,4)
>>> l1 + l2
(3, 4, 4)
>>>


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4