Abbysays’s Weblog

November 26, 2008

String Reverse in Python

One line code to reverse a string in Python:

strOrig = “xyz”

revStr = s[::-1]

where ’strOrig’ is the source string and ‘revStr’ is the string reversed.

Python is indeed powerful!!

How to send free SMS through email

To send free sms, add your service provider’s domain name to the end of the 10-digit mobile number of the person whom you want to send SMS.

For example, if the mobile number is – 123-456-7890 and the provider is AT&T, then sms can be send through email as:

Recipient’s address: 1234567890@message.alltel.com

Type the message in the message ‘Subject’ or message ‘Body’.

Enjoy free messaging!!

Mobile Device Address

Alltel: @message.alltel.com
AT&T: @txt.att.net
Boost Mobile: @myboostmobile.com
Sprint Nextel: @messaging.sprintpcs.com
T-Mobile: @tmomail.com
U.S. Cellular: @email.uscc.net
Verizon: @vtext.com
Virgin Mobile: @vmobl.com

Blog at WordPress.com.