Timeline for How do I keep printed words in list form?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2020 at 8:44 | comment | added | D'Angelo | That fixed it, thank you so much | |
Apr 21, 2020 at 8:42 | comment | added | kglr |
@D'Angelo, try d = {{{1, 4}, {1, 1}, {1, 2}}, {{1, 4}, {1, 1}, {3, 3}}}; as input (d in your post has a typo.).
|
|
Apr 21, 2020 at 8:40 | comment | added | D'Angelo | There's an error saying that Part specification 1[[1]] is longer than depth of object | |
Apr 21, 2020 at 7:39 | comment | added | kglr |
@D'Angelo, try w = {}; For[b = 1, b <= Length@d, b++, AppendTo[w, Table[If[d[[b, l]][[1]] == d[[b, l]][[2]], "Same", Unevaluated@Sequence[]], {l, 1, Length[d[[b]]]}]]]; w ?
|
|
Apr 21, 2020 at 7:06 | vote | accept | D'Angelo | ||
Apr 21, 2020 at 6:59 | comment | added | D'Angelo | Thank you for showing me that. I hate to be a bother but is it still possible to do it the way I had done it above? Although I can use the new method you showed me for one part of what I'm doing, I have a section of code that's a little more complicated and is sort of "stuck" in the form similar to what I had shown above. Would you happen to know of a way to do that? | |
Apr 21, 2020 at 6:26 | history | edited | kglr | CC BY-SA 4.0 |
deleted 2 characters in body
|
Apr 21, 2020 at 6:08 | history | answered | kglr | CC BY-SA 4.0 |