Answers for "return all character from string python"

2

python get all characters

import string

# all the lowercase and uppercase letters
print(string.ascii_letters)
# every printable key on your keyboard
print(string.printable)
# every digit
print(string.digits)
Posted by: Guest on February-08-2020
0

how to get a character from a string in python

a = "burger"
print(a[0])
Posted by: Guest on December-21-2021

Code answers related to "return all character from string python"

Python Answers by Framework

Browse Popular Code Answers by Language