Python string library doesn't recommend the built-in ‘reverse()’ as done by other Python containers like lists. Hence, comprehending other methods to reverse strings can prove to be useful.
# Python code to reverse a string
# using loop
str = ""
for i in s:
str = i + str
s = "WelcometoIntellipaat"
print ("The original string is : ",end="")
print ("The reversed string(using loops) is : ",end="")
If you are looking for an online course to learn Python, check out this Python Course by Intellipaat.