PYTHON BEGINNERS - 04 : WORKING WITH STRINGS

 IN THIS TUTORIAL, WE WILL LEARN ABOUT WORKING WITH STRINGS:

NOTE : YOU SHOULD TRY ALL THE METHODS ONE BY ONE 

COMMENT OUT : CTRL = BACK SLASH

phrase = "Abedeen Academy"
        # 0123456 etc  
# print(phrase + " is cool")

# print(phrase.lower())

# print(phrase.lower())

# print(phrase.isupper())

# print(phrase.upper().isupper())

# print(len(phrase))

# print(phrase[3])

# print(phrase.index("A"))

print(phrase.replace("Abedeen", "PASWASAA"))

Comments