Have you ever wondered why your code never works when all lines seem perfectly fine?
.
Found the culprit - 𝘢 𝘮𝘪𝘴𝘴𝘪𝘯𝘨 𝘴𝘦𝘮𝘪𝘤𝘰𝘭𝘰𝘯!
.
The purpose of semicolon is either as statement separators or statement terminators in most programming languages, but their use has changed in the past 60 years.
.
Today, many mainstream programming languages (JS, C+, C++, JAVA) allow you to leave out semicolon at the end of most statements that end with a newline as statement terminators.
.
On the other hand, Python uses newline characters as a statement terminator. With newer programming languages gaining popularity, would semicolons fade out its purpose?
.
.
.

Comments