# Why am I getting an error in my print statement? \[Python 3\]

**URL:** <https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725>\
**Category:** General\
**Created:** [June 10, 2020, 7:17pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725 "2020-06-10T19:17:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![csquare121](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@csquare121](https://forum.freecodecamp.org/u/csquare121)\
**Post date:** [June 10, 2020, 7:17pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725/1 "2020-06-10T19:17:28Z")

</div>

Can someone help me figure out why I am getting an error in my code?

```auto
ar = []
ar.append ([29, 21, 33, -30])
ar.append ([39, 26, -43, 42])
ar.append ([123, 43, 33, 46])

print (ar)

for r in range(len(ar)):
    for c in range(len(ar[0])):
    print (ar[r][c])
    print ("")

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 10, 2020, 7:21pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725/2 "2020-06-10T19:21:27Z")

</div>

What language? Python?

---

<div class="post-metadata">

**Author:** ![csquare121](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@csquare121](https://forum.freecodecamp.org/u/csquare121)\
**Post date:** [June 10, 2020, 7:22pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725/3 "2020-06-10T19:22:32Z")

</div>

The language I am using is Python 3.

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 10, 2020, 7:24pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725/4 "2020-06-10T19:24:18Z")

</div>

Ok, you have a syntax error because you did not indent after your second `for`. In Python, whitespace is important and has syntactic meaning.

As a side note: You don’t put space between the name of the function and the `()` for the argument in Python. You _can_ but it is very unusual.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:50pm UTC](https://forum.freecodecamp.org/t/why-am-i-getting-an-error-in-my-print-statement-python-3/401725/5 "2021-06-01T18:50:11Z")

</div>

Closed on June 1, 2021, 6:50pm UTC


