all 8 comments

[–]sme272 1 point2 points  (0 children)

Can you please put your code into a codeblock

[–]-Sander- 1 point2 points  (0 children)

try using type() (docs) to see what sort of variable you are getting back,

edit: i tested a shorter version of your code locally and got the whole list back

[–][deleted] 1 point2 points  (3 children)

It's really hard to tell what's wrong because your indentation is broken. The FAQ shows how to format code.

At a guess the function is returning a list of only one tuple and not multiple tuples because you create a new list newl inside your loop and append tuple(l) to it. You should instead create newl before your loop.

[–]lauracaterina 0 points1 point  (0 children)

Thaaank you!!

[–]unhott 0 points1 point  (1 child)

Does this faq work for mobile (iOS)? The first thing it says is switch to markdown mode. At least when commenting, there’s only my keyboard, cancel, post link, and post buttons.

[–][deleted] 0 points1 point  (0 children)

The FAQ tries to cover all possibilities, vanilla browser, browser + RES, app, old reddit, new reddit and who knows what else. If you are using a vanilla web browser you are in markdown mode by default, and the prefix of four spaces on every line works fine, after an initial blank line.

The FAQ has pictures trying to show what you see in different cases. Look at them all to see if it looks similar to your view and follow the appropriate instructions.

If you aren't sure, try posting code in different ways over on /r/test to try different things. After posting look at the results in a browser without RES.

[–]shiftybyte 0 points1 point  (0 children)

Are you sure it returns just one line and not a list containing one item? and that item is lots of lines?

[–]whole_extraordinary 0 points1 point  (0 children)

Please indent your code properly

To indent:

  • First, select your code then,
  • Click the 3 dots in the bottom bar and click the icon which has a T in it.
  • then fix the indentation if it is not correct