> Dear all,
>
> I hope someone out there can help me.
>
> The output string of my code is close to what i need, but i need it
> 1)printed on one line and
> 2) reversed
>
> #mycode:
> s= input("Enter message: ")
> key=1
> for letter in s:
> num=(chr(ord(letter)+1))
> print(num)
> #or
On 13/01/2011 00:49, Corey Richardson wrote:
On 01/12/2011 07:39 PM, Corey Richardson wrote:
On 01/12/2011 07:35 PM, Cathy James wrote:
Dear all,
I hope someone out there can help me.
The output string of my code is close to what i need, but i need it
1)printed on one line and
2) reversed
Try
print s[::-1]
Nick
On Wednesday, January 12, 2011, Cathy James wrote:
> Dear all,
>
> I hope someone out there can help me.
>
> The output string of my code is close to what i need, but i need it
> 1)printed on one line and
>
> 2) reversed
>
>
> #mycode:
> s= input("Enter message: ")
> key
On 01/12/2011 07:39 PM, Corey Richardson wrote:
> On 01/12/2011 07:35 PM, Cathy James wrote:
>> Dear all,
>>
>> I hope someone out there can help me.
>>
>> The output string of my code is close to what i need, but i need it
>> 1)printed on one line and
>> 2) reversed
>>
>> #mycode:
>> s= inp
On 01/12/2011 07:35 PM, Cathy James wrote:
> Dear all,
>
> I hope someone out there can help me.
>
> The output string of my code is close to what i need, but i need it
> 1)printed on one line and
> 2) reversed
>
> #mycode:
> s= input("Enter message: ")
> key=1
> for letter in s:
> num=(