-
Notifications
You must be signed in to change notification settings - Fork 260
commits with home-work-2 #55
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
base: main
Are you sure you want to change the base?
Conversation
for_challenges.py
Outdated
sex = 'мужской' | ||
else: | ||
sex = 'женский' | ||
print(f"{names[i]}: {sex}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А тут укажем "Станислав" в names и он станет девочкой :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а как обойти это если у нас задан строго словарь с именами и полом?
for_challenges.py
Outdated
print(f"Группа {group}:", end=' ') | ||
for j in range(0, len(groups[i])): | ||
print(f"{groups[i][j]}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А вот тут есть несоответствие условию. Нужно имена через запятую соединить...
Тут лучше бы пошло:
group_content = ', '.join(groups[i])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот я не догадался как это сделать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправил, спасибо!
No description provided.