Answers for "how to pick individual characters in a string python"

1

can you look for specific characters in python

yourString = "string"

if "s" in yourString:
  print("There is an S in your string")
  
if "s" not in yourString:
  print("There is no S in your string")
Posted by: Guest on October-09-2020
0

python select certain characters from string

#you can specify the index of a specific character
example = 'example'
print(example[2])
Posted by: Guest on June-24-2021

Code answers related to "how to pick individual characters in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language