Professional Documents
Culture Documents
Strings
Strings
Output:
Important String Functions Python
A couple of string functions:
1. CONCATENATION This function is used to connect two strings to a
new string using the "+" operator:
Output:
String Concatenation in Python
Output:
String Concatenation in Python
Output:
String Concatenation in Python
Output:
Important String Functions Python
4. SLICING
Output:
Important String Functions Python
4. SLICING
Output:
Important String Functions Python
4. SLICING A SEQUENCE
Using slicing, write a code that if we run it, the output is Norwegian blue.
Output:
Important String Functions Python
4. SLICING A SEQUENCE
Assignment:
Important String Functions Python
A couple of string functions:
5. LENGTH OF A STRING