How to execute Simple String Operations using python

string = "Hello, World!"print("Length of the string:", len(string)) print("Upper

Created By :

Created On :

23-03-2024

How to execute Simple String Operations using python

Updated on 24, February 2024 293 Enrolled
how to

Step 1

string = "Hello, World!"

print("Length of the string:", len(string))

print("Uppercase:", string.upper())

print("Lowercase:", string.lower())

print("Reversed string:", string[::-1])

line

Copyrights © 2024 letsupdateskills All rights reserved