Skip to content

Update do_if.py #126

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: master
Choose a base branch
from
Open

Conversation

kathirsci41
Copy link

No description provided.

@verneyleaf
Copy link

verneyleaf commented Oct 9, 2024 via email

@@ -9,7 +9,7 @@

if age >= 18:
print('adult')
elif age >= 6:
elif age >= 16:
print('teenager')

Choose a reason for hiding this comment

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

Recommendation print('adult' if age >= 18 else 'teenager' if age >= 16 else 'kid')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants