How to reverse strings in Python

How to reverse strings in Python

While there is no specific method of str object to reverse a string in Python like the list reverse method, you may use a number of techniques to reverse a string. One of the ways is using the extended slice…

Demos and Full Guide
What is Python slice?

What is Python slice?

The slicing is a Python methodology that enables accessing parts of data from the given sequence like lists, tupes, strings etc. and objects that support sequence protocol.

Demos and Full Guide
What is do while loop?

What is do while loop?

Python also has while loop, however, do while loop is not available. As such, the difference between while and do while loop is the do while loop executes the statements inside it at least once

Demos and Full Guide
Python pass statement

Python pass statement

The Python pass statement is a null operation; nothing happens as pass statement is executed. However, the interpreter reads it and so if placed in functions, if, loops etc. this is taken as a statement.

Demos and Full Guide
Python max function

Python max function

The max() function is used to return the maximum value for two or more arguments passed to it. If an iterable like a list is passed as an argument, it will return the largest item in the iterable.

Demos and Full Guide