# Why is my tuple code not working

**URL:** https://forum.codewithmosh.com/t/why-is-my-tuple-code-not-working/27105
**Category:** Python
**Created:** [June 7, 2024, 11:38am UTC](https://forum.codewithmosh.com/t/why-is-my-tuple-code-not-working/27105 "2024-06-07T11:38:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![db184](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@db184](https://forum.codewithmosh.com/u/db184)
#### Post date: [June 7, 2024, 11:38am UTC](https://forum.codewithmosh.com/t/why-is-my-tuple-code-not-working/27105/1 "2024-06-07T11:38:13Z")

</div>

Could anyone help me with solve the problem.  
The tuple code is not running.

 ![tuple](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4420ebb4331ac4cb524a181b66038dc97852ab7c.png)

---

<div class="post-metadata">

### Author: ![lucidlear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/lucidlear/32/5477_2.png) [@lucidlear](https://forum.codewithmosh.com/u/lucidlear)
#### Post date: [June 7, 2024, 9:16pm UTC](https://forum.codewithmosh.com/t/why-is-my-tuple-code-not-working/27105/2 "2024-06-07T21:16:40Z")

</div>

Hi the code should run but im guessing you want to print the count of three so you have to put that expression inside a print statement ie:

```auto
a = (1, 2, 3, 3)
print(a.count(3))

```
