Answers for "access a character in a string python"

4

find character in python

banana = "banana"
banana.find("a")
#1
banana.find("a",2)
#3
Posted by: Guest on May-21-2021
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 "access a character in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language