The break statement in Python

The break statement in Python

The Python break statement is used to terminate the for or while loops. Normally, the loop ends as the testing condition fails. However, in certain scenarios, you may require ending the loop earlier

Demos and Full Guide
Types of Errors in Python?

Types of Errors in Python?

The errors occur as a program is executed or running is called exception. These errors must be handled or a program will crash and may leave a confusion or bad impression on the user’s part.

Demos and Full Guide
Is Python foreach loop available?

Is Python foreach loop available?

The purpose of foreach loop is to iterate through arrays or collections easily. Then why Python does not support it? Well, there is another handy way of doing this job quite easily. You can say doing foreach in Pythonic way.

Demos and Full Guide
What is ord() function?

What is ord() function?

The Python ord() function is used to return an integer of the given single Unicode character. Inversely, the Python chr() function takes a Unicode code point (integer) and returns a string.

Demos and Full Guide
Writing Python comments

Writing Python comments

For single line comments, you may use the # (hash character) in the Python programs. For multi-line comments, use the triple quoted strings. Both of these ways are explained.

Demos and Full Guide