-
Notifications
You must be signed in to change notification settings - Fork 50
Ready_for_review #62
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: master
Are you sure you want to change the base?
Ready_for_review #62
Conversation
| @@ -0,0 +1,5 @@ | |||
| """ | |||
| Check len of element, if len == 0, add to counter | |||
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.
Завдання некоректно побудовано
| Check len of element, if len == 0, add to counter | ||
| UPD: Sorry, reviewer, I've no idea what this is supposed to mean, so let's just say we need to find all the | ||
| elements with a value of "" | ||
| """ No newline at end of file |
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.
Якщо я правильно розумію завдання, то воно має виглядати так
rand_list = [[], 5, 6, [], 5, "element", [1], []]
counter = 0
for el in rand_list:
if isinstance(el, list) is True and len(el) == 0:
counter += 1
print(counter)
| """ | ||
| Text - list; print with step 3 | ||
| """ | ||
| text = ["Hello, my name is this"] |
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.
На скільки я зрозумів завдання, ліст має містити багато строк
| """ | ||
| Text - list; print with step 3 | ||
| """ | ||
| text = ["Hello, my name is this"] |
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.
Тут не правильно оформлений слайс, слайс має бути оформлений так:
text = ["Hello", "my", "name", "is", "Oleh", "I", "leave", "in", "Kiev", "I", "love", "KPI!"]
print(text[::3])
No description provided.