Python coerces any non-zero value to True in logical expressions
True
Типа 1ца это Тру, а 0 - Фолс?
OP solved it, closing
Look here for code formatting.
This comment is hidden because it contains spoiler information about the solution
Yeah sorry, I don't know how to read that.
I dont even understand what to do. This is not for 7kyu.
Гениально
Если у тебя в комментарии есть решение, помечай комментарий как спойлер
Что делает строчка 'r = next(it:=iter(cards))'? Почему 'for c in it:' начинается со второго элемента?
8 kyu and I can't complete this task :\
Loading collection data...
Python coerces any non-zero value to
True
in logical expressionsТипа 1ца это Тру, а 0 - Фолс?
OP solved it, closing
Look here for code formatting.
This comment is hidden because it contains spoiler information about the solution
Yeah sorry, I don't know how to read that.
I dont even understand what to do. This is not for 7kyu.
Гениально
Если у тебя в комментарии есть решение, помечай комментарий как спойлер
This comment is hidden because it contains spoiler information about the solution
Что делает строчка 'r = next(it:=iter(cards))'?
Почему 'for c in it:' начинается со второго элемента?
8 kyu and I can't complete this task :\