SyntaxFix
Write A Post
Hire A Developer
Questions
<execute-test-successful-condition> if <test> else <execute-test-fail-condition>
with your code-snippet it would become,
count = 0 if count == N else N + 1