I know in java, if you have a char variable, you could do the following:
char a = 'a'
a = a + 1
System.out.println(a)
This would print 'b'. I don't know the exact name of what this is, but is there any way to do this in python?
You could use ord and chr :
print(chr(ord('a')+1))
# b
More information about ord and chr.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With