Mega Code Archive
Categories
/
Ruby
/
String
Accessing Strings
speaker = "King Richard III" # If you enter a string as the argument to [], it will return that string, if found: puts speaker['King']