jiphy icon indicating copy to clipboard operation
jiphy copied to clipboard

while loop has wrong bracket position (py to JS)

Open linshi1111 opened this issue 3 years ago • 0 comments

In python

import jiphy

js_code = jiphy.to.javascript("""
while True:
    sleep(2)
print("This is not in while loop")
""")

print(js_code)

And the output is:

;
while (true) {
    sleep(2);
console.log('This is not in while loop');

}

bracket has wrong position

linshi1111 avatar Apr 10 '21 14:04 linshi1111