Source Code:
(back to article)
string_var = "hello, world" print(string_var.find("o")) # 4 print(string_var.count("l")) # 3 print(string_var.upper()) # "HELLO, WORLD" print(string_var.strip()) # "hello, world" print(string_var.split(", ")) # ["hello", "world"]
Result:
Report an issue