teromakotero icon

Untitled

teromakotero | PRO | 05/05/19 10:23:31 AM UTC | 0 ⭐ | 398 👁️ | Never ⏰ | []
Python |

310 B

|

None

|

0 👍

/

0 👎

'''
Create a function that accepts a string and returns the same string reversed.
'''
string = input("Give me a string. ")
 
def string_reversed(string):
    reversed = []
    for i in string:
        reversed.insert(0,i)
    a = ''.join(reversed)
    return a
        
        
print(string_reversed(string))

Comments