Creating a String in Python

Strings     Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable. “Hello World” “Creating a String in Python” Creating a String in Python … Read more

Some Basic Python String Programs-1

Some Basic Python String Programs-1

String A string is an immutable sequence of  Unicode characters. Unicode includes every character in all languages. Python does not have a character data type, a single character is simply a substring with a length of 1 and can be accessed by using indexing. The string module contains several useful constants and classes, as well … Read more

%d bloggers like this: