K
Kali K E
Hi,
I want two simple things.
1. To find the length of the string
2. To find the contants of the last character in a string. I tried to
use $ for that, but I am getting syntax error. I do not know the
correct format. Basically I have to check
if mystring[lastchr] == '.':
dosomething
else:
donothing
Please help me.
I want two simple things.
1. To find the length of the string
2. To find the contants of the last character in a string. I tried to
use $ for that, but I am getting syntax error. I do not know the
correct format. Basically I have to check
if mystring[lastchr] == '.':
dosomething
else:
donothing
Please help me.