LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   get first char of a string? (https://www.linuxquestions.org/questions/programming-9/get-first-char-of-a-string-633329/)

raskol 04-05-2008 05:35 PM

get first char of a string?
 
using python.

if i have a string elstringo and want to get the 1st symbol/char/number/whatever and have it removed from the string is there a specific function for this?

btw is a char a string with the length 1 so to speak?

raskol 04-05-2008 05:59 PM

Quote:

Originally Posted by raskol (Post 3112020)
using python.

if i have a string elstringo and want to get the 1st symbol/char/number/whatever and have it removed from the string is there a specific function for this?

btw is a char a string with the length 1 so to speak?

im talking about sutff like this:

http://www.cppreference.com/cppstring/index.html


i google python string and get nothing really useful.

raskol 04-05-2008 06:11 PM

http://eric_rollins.home.mindspring....mming/ch7.html

there we go found it myself


All times are GMT -5. The time now is 04:03 AM.