0% found this document useful (0 votes)
8 views1 page

Python String Manipulation Exercises

The document provides 3 programming exercises of increasing difficulty: create a string, slice and store a substring, and replace a substring and concatenate strings.

Uploaded by

rohit s
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Python String Manipulation Exercises

The document provides 3 programming exercises of increasing difficulty: create a string, slice and store a substring, and replace a substring and concatenate strings.

Uploaded by

rohit s
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

STRINGS - Exercise

Easy
Write a program to create a string “Python programming is easy”

Medium
Now slice the first string and store “easy” in the second string

Hard
Replace “easy” in the second string with “ and powerful” and concatenate both
the strings

You might also like