Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.1K Views
|
5 Replies
|
5 Total Likes
View groups...
Share
Share this post:

How to create this list?

POSTED BY: Diogo Duarte
5 Replies
POSTED BY: Marco Thiel
POSTED BY: Marco Thiel
POSTED BY: Diogo Duarte

Hi,

try

Tuples[{0, 1}, 2]
(*{{0, 0}, {0, 1}, {1, 0}, {1, 1}}*)

If you change 2 to any N, it should do what you want.

Cheers,

M.

POSTED BY: Marco Thiel

Hi Marco, Thank you so much for your reply. I was not aware of this function. Many thanks again.

POSTED BY: Diogo Duarte
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard