Posts: 4,550
Threads: 1,458
Joined: Sep 2016
i have a character as a string of length 1. i want the next higher character. 'a'->'b' or '4'->'5' or '9'->':'. i could do chr(ord(ch)+1). does python have any more elegant way?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,550
Threads: 1,458
Joined: Sep 2016
what character does that code yield?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,550
Threads: 1,458
Joined: Sep 2016
Jun-07-2019, 05:12 AM
(This post was last modified: Jun-07-2019, 05:13 AM by Skaperen.)
(Jun-07-2019, 02:33 AM)heiner55 Wrote: See:
https://docs.python.org/3.7/library/string.html
i think you didn't understand my question. i do not see an answer in that link.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,550
Threads: 1,458
Joined: Sep 2016
if the question is too hard to understand why post any answer at all?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.