AndreiL
Welcome to AndreiL.
Enjoy your time.
Please log in.

Reverse of strings - Python

Go down

Reverse of strings - Python

Post by Lucaci Andrei on Sun Feb 19, 2012 9:11 pm

 1
2
3
4
5
6
7
8
9
10
11
12
13
'''
Created on Feb 20, 2012

@author: sin
'''
import time
def reverse(syntax):
rev_syntax = (str(syntax))[::-1]
return rev_syntax

syntax = raw_input("Syntax: \n")
print reverse(syntax)
time.sleep(3)

avatar
Lucaci Andrei
"Tata Lor"


Number of messages : 222
Points : 2266743
Reputation : 1007
Registration date : 2008-08-15
Age : 26
Location : Cluj-Napoca

View user profile http://www.andreil.wgz.ro

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum