# Py-repl tag issue

**URL:** <https://forum.anaconda.com/t/py-repl-tag-issue/41071>\
**Category:** PyScript\
**Created:** [October 3, 2022, 6:32am UTC](https://forum.anaconda.com/t/py-repl-tag-issue/41071 "2022-10-03T06:32:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drlee7](https://avatars.discourse-cdn.com/v4/letter/d/00a5b5/32.png) [@drlee7](https://forum.anaconda.com/u/drlee7)\
**Post date:** [October 3, 2022, 6:32am UTC](https://forum.anaconda.com/t/py-repl-tag-issue/41071/1 "2022-10-03T06:32:53Z")

</div>

I appreciate providing your greate framework !  
I’m gonna write an e-book about pyscript.

## In the testing tag, I found that only last one is written, below this script code. —‐-------- for i, j in enumerate(‘abcde’): print(i, ‘-’, j)

## \< output \> e

## \< test url \> [https://pyscript.net/examples/repl.html](https://pyscript.net/examples/repl.html)

when it’ll be fixed,  
this framework will be grown one step.  
I believe you could fix this!

if you pleaseant,  
would you like to solve this issue for your time?  
thank you!

---

<div class="post-metadata">

**Author:** ![JeffGlass](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/jeffglass/32/1301_2.png) [@JeffGlass](https://forum.anaconda.com/u/JeffGlass)\
**Post date:** [October 3, 2022, 12:43pm UTC](https://forum.anaconda.com/t/py-repl-tag-issue/41071/2 "2022-10-03T12:43:16Z")

</div>

As of PyScript 2022.09.1 that released on Friday, `print()` is sent to the Developer console by default instead of to the screen. So if you’re linking to `https://pyscript.net/latest/pyscript.js` that’s what you’ll see today:

 ![image](https://europe1.discourse-cdn.com/anaconda/original/2X/0/0f3ae2ab9cf05b7ac3ad4abfc1a88bb6a2113bda.png)

The fact that you see the last printed thing, `e`, is a byproduct of the fact that by default, the Pyodide function that’s used under hood to evaluate the Python code [returns the value of the last expression in the source code](https://pyodide.org/en/stable/usage/api/python-api/code.html#pyodide.code.eval_code) which is then output to the screen.

You might notice that there’s one line in the Developer Console per argument to `print()`, as apposed to one per _line_ like you might expect. [This is a known issue](https://github.com/pyscript/pyscript/issues/472) - in short, there’s one line in the console _per write to stdout_, and `print()` sends each of its arguments to stdout separately.

---

<div class="post-metadata">

**Author:** ![drlee7](https://avatars.discourse-cdn.com/v4/letter/d/00a5b5/32.png) [@drlee7](https://forum.anaconda.com/u/drlee7)\
**Post date:** [October 3, 2022, 2:42pm UTC](https://forum.anaconda.com/t/py-repl-tag-issue/41071/3 "2022-10-03T14:42:31Z")

</div>

## Thank you! I got it. I found another way in your providing link. below script can print all data. ‐--------- import js.jQuery as jp jp(‘py-repl’).last().append(‘ ’) output = Element(‘output’) for i, j in enumerate(‘abcde’): output.element.append(str(i) + ‘-’ + j + ', ')

god bless you!
