diff --git a/__pycache__/string.cpython-36.pyc b/__pycache__/string.cpython-36.pyc new file mode 100644 index 0000000..a9fa1c2 Binary files /dev/null and b/__pycache__/string.cpython-36.pyc differ diff --git a/string.py b/string.py new file mode 100644 index 0000000..e6c0362 --- /dev/null +++ b/string.py @@ -0,0 +1,24 @@ +def main(): + # string management + string = "hola CARLOS" + # conatenate + print(string+" como estas") + # replace + print(string.replace("hola", 'hi')) + # lower case + print(string.lower()) + # upper case + print(string.upper()) + # count + print(len(string)) + # find get the position of charater + # this method retunr -1 is string don't exist + print(string.find("hola")) + #split + # transform string into array depending on the chain + print(string.split(' ')) + + #TODO: https://www.programiz.com/python-programming/methods/string FOR MORE INFORMATION +if __name__ == '__main__': + main() + \ No newline at end of file