LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ansci-number for stringtoken? (https://www.linuxquestions.org/questions/programming-9/ansci-number-for-stringtoken-633316/)

raskol 04-05-2008 03:58 PM

ansci-number for stringtoken?
 
so i have some rawinput and need it to be 1-9, 0 or + - * or /.

how can i get the ascni-number for the token 1, i eman not the number but the stringtoken "1"?

so i can write:

if anbr >= ansci and anbr < ansci:
mystr = mystr + anbr

osor 04-05-2008 07:44 PM

What language is this?

raskol 04-05-2008 10:16 PM

Quote:

Originally Posted by osor (Post 3112108)
What language is this?

it is python


All times are GMT -5. The time now is 10:54 AM.