PROGRAMMING
GAME DEVELOPMENT
Strings are widely used in python programming, and the usage is for both, very simple usecases while at the same time for complex problems. In this code example we will see some of the basic string operations like string concatenation, string repetition, looking for a substring in a string etc, which proves to be very useful.
Try the code with different string values. Click the button, to Run the code again.
CODE SNIPPETS
;
to join two Executable Statements/
to break code into multiline codelen()
, find()
, replace()
& split()
zip
function to iterate over two Listsdel
, remove()
or pop()
insert()
, reverse()
& sort()
What is Studytonight?
Tutorials
Learn to Code
Interview Questions
/code/python/string-operation-examples.php