# Correction in Python training video Data Structure - Stack (5-13)

**URL:** https://forum.codewithmosh.com/t/correction-in-python-training-video-data-structure-stack-5-13/16613
**Category:** Python
**Created:** [November 23, 2022, 6:48am UTC](https://forum.codewithmosh.com/t/correction-in-python-training-video-data-structure-stack-5-13/16613 "2022-11-23T06:48:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Osaid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/osaid/32/5019_2.png) [@Osaid](https://forum.codewithmosh.com/u/Osaid)
#### Post date: [November 23, 2022, 6:48am UTC](https://forum.codewithmosh.com/t/correction-in-python-training-video-data-structure-stack-5-13/16613/1 "2022-11-23T06:48:55Z")

</div>

Hi,

Thank you for the wonderful python training videos.

Kindly consider the following suggestion,

> **[13- Stacks](https://codewithmosh.com/courses/417695/lectures/6781699)**
>
> Everything you need to program in Python in one course (includes 3 real-world projects)

Timestamp [4:13]

Existing logic should be inverted because we cannot return if the list is empty. That snippet can be updated to

```auto
if browsing_session:
  browsing[-1]
else:
  print("Back button disabled")

```

Thank you,  
Muhammad Osaid
