python program to Reverse String without using in-built function Python | interview question

preview_player
Показать описание
Reverse String:

The reversing of a string is nothing but simply substituting the last element of a string to the 1st position of the string.

here in this video shows, without using Python inbuilt function reverse the string.

example for inbuilt function:

reverse()

slicing method

string is one of data type in Python

string are declared in Python with single quotation or double quotation ( ' ' or " " ).
Рекомендации по теме