Skip to main content
code highlighting
Source Link
Thies Heidecke
  • 8.8k
  • 34
  • 45

The word 'List'List is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List'List as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}

B) List[[1]][[2]][[2]]List[[1]][[2]][[2]] will produce ee

[[n]][[n]] means nn-th object in the list.

And.. this is my first answer in stackexchange!

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

The word List is systemically reserved. (At least in version 11.3) You will see an error message if you use List as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

deleted 33 characters in body
Source Link
imida k
  • 4.3k
  • 10
  • 20

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will {{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will produce {{a, b, c}, {d, e, f}, {g, h, i}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

added 95 characters in body
Source Link
imida k
  • 4.3k
  • 10
  • 20

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will {{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]]

B) List[[1]][[2]][[2]]

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

The word 'List' is systemically reserved. (At least in version 11.3) You will see an error message if you use 'List' as a variable name.

So, let

Lit = {{{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}}

Then my answer is

A) Lit[[1]] will {{a, b, c}, {d, e, f}, {g, h, i}}, {{j, k, l}, {m, n, o}, {p, q, r}}

B) List[[1]][[2]][[2]] will produce e

[[n]] means n-th object in the list.

And.. this is my first answer in stackexchange!

Source Link
imida k
  • 4.3k
  • 10
  • 20
Loading