Python Logical And Statement Javascript Playground