Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Show step! Imagine having to define a programming language. We are discussing if

ID: 3594940 • Letter: S

Question

Show step!

Imagine having to define a programming language. We are discussing if we should have any special way to denote the end of statements. There are three main approaches: using a special terminator symbol that denotes the end of every statement-for instance ; in C/C++ and Java using a special separator symbol that separates every two consecutive statements-for instance ; in Pascal no special symbol is used, the end of statements is determined from the context-for instance Python Which approach is in your opinion more natural and less likely to result in syntax errors? Does Python really uses no symbol to terminate a statement? Justify your answer.

Explanation / Answer

The most common issue faced by the programmer is to deal with the problem of skipping the semi colon and then keep on searching in the complete code where it has been skipped. Though this has been resolved by many modern day IDEs but still this is a problem. As python doesnot involves any semi colon to written in at the end of the statement, hence it provides liberty to the programmers for skipping the semi colon at the end of the statement, as programmer don't have to worry about the syntactical errors to some extent.

The main strength behind the python programming language is it's indentation style. Though it is recommended to most of the programmer to add indentation to there codes but some of the programmers are lazy enough to skip this part. But with the python programming language this has been made compulsory for adding the proper indentation in the code. Python uses the line feed at the end of each statement to mark the end of the statement, instead of the traditional semi colon.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote