repl.it
@TMDUBS/

Make text backwards

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def reverse(s): 
  str = "" 
  for i in s: 
    str = i + str
  return str
  
a = input("Enter the text you want to make backwards: ")
  
print ("The original string  is : ",end="") 
print (a) 
  
print ("The reversed string(using loops) is : ",end="") 
print (reverse(a)) 
?