# Jupyter python code not running

**URL:** https://discourse.jupyter.org/t/jupyter-python-code-not-running/19660
**Category:** JupyterHub
**Tags:** help-wanted, jupyterhub, notebook, community
**Created:** [May 31, 2023, 9:09pm UTC](https://discourse.jupyter.org/t/jupyter-python-code-not-running/19660 "2023-05-31T21:09:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Animesh\_Shukla](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/animesh_shukla/32/10041_2.png) [@Animesh\_Shukla](https://discourse.jupyter.org/u/Animesh_Shukla)
#### Post date: [May 31, 2023, 9:09pm UTC](https://discourse.jupyter.org/t/jupyter-python-code-not-running/19660/1 "2023-05-31T21:09:04Z")

</div>

I am trying to run the following code but nothing is being shown. Here is the image:

 ![Screen Shot 2023-05-31 at 5.08.02 PM](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/5/56eff2e0b32104136444cd66834cf0598a52ea05.jpeg)  
What could be the issue as I am restarting the kernal, still this specific code is not running.

---

<div class="post-metadata">

### Author: ![rgaiacs](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rgaiacs/32/20200_2.png) [@rgaiacs](https://discourse.jupyter.org/u/rgaiacs)
#### Post date: [June 1, 2023, 8:37am UTC](https://discourse.jupyter.org/t/jupyter-python-code-not-running/19660/2 "2023-06-01T08:37:39Z")

</div>

Hi @Animesh_Shukla,

Jupyter Notebook will only print the output of the last statement. `for`-loop doesn’t have an output. You must use the `print()` function if you want to see any output.
