Python does not warrant the use of semicolons to end statements.
So why is this (below) allowed?
import pdb; pdb.set_trace()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Python does not require semicolons to terminate statements. Semicolons can be used to delimit statements if you wish to put multiple statements on the same line.
Now, why is this allowed? It’s a simple design decision. I don’t think Python needs this semicolon thing, but somebody thought it would be nice to have and added it to the language.