Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(curriculum): clarify list truthiness in while loop explanation step 39 #60335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from

Conversation

akremdh1
Copy link
Contributor

Checklist:

Closes #57113

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label May 13, 2025
@ilenia-magoni
Copy link
Contributor

if all the PR you are opening are going to close the same issue, you should have one single PR

@@ -7,7 +7,9 @@ dashedName: step-39

# --description--

Before the `print` call, create a `while` loop that runs while `unvisited` is not empty. Use the `pass` keyword to fill the loop body.
Before the `print` call, create a `while` loop that runs while `unvisited` is not empty. In Python, a list returns `True` when it contains elements and `False` when empty — so `while unvisited:` is a simple and valid way to repeat logic until the list is empty.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is false, a list doesn't return a boolean

a list is truthy or falsy tho

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok ,i will change it

@huyenltnguyen huyenltnguyen added status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP archived coursework the scope is archived coursework, it's lower priority than current curriculum labels May 14, 2025
@huyenltnguyen huyenltnguyen changed the title fix(curriculum)): clarify list truthiness in while loop explanation step 39 fix(curriculum): clarify list truthiness in while loop explanation step 39 May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived coursework the scope is archived coursework, it's lower priority than current curriculum scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shortest-Path-Algorithm Challenge: Report with suggestions to improve the learning experience
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.