9

TIL You can put semicolons at the end of lines of Python and it will still work fine.

Comments
  • 0
    But like why
  • 0
    I occasionally do that when I jump back and forth between Python and JS, but PyCharm doesn't like it.
  • 0
    @620hun Why in JS too? If you're not intending to serve old browsers or skipping babel you can leave them away too.
  • 1
    @LinusCDE Habits. It doesn't feel right. Closure Compiler strips them off for me though.
  • 0
    @620hun Yea. I started using Python a long time ago. And revently Kotlin. So semicolons are dying out.
Add Comment