Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

String Methods

Examples:ΒΆ

Method nameValue
replacereplace part of a string with another string
lowera lowercased version of the string
upperan uppercased version of the string
capitalizea version with the first letter capitalized
titlea version with the first letter of every word capitalized
'Jonathan'.lower()
'jonathan'
'Temple is good'.replace('good','great')
'Temple is great'
temple = 'Temple is ok'
temple.replace('ok','great')
'Temple is great'
'Temple'+' is ok'
'Temple is ok'
'10' +' 2'
'10 2'
number = 1884 # Temple founding date
number += 150 # A way to add to value in variable number