Primitive Data Types
String Data Type
Understanding the use of single', double" and triple''' quote
How to get the length of a string variable?
course = "Python Programming"
course = 'Python Programming'
course = 'Python" Developer' # (here variable is Python" Developer)course = ''' this is multiline string declaration
and everything within triple quotes will be stored within
a single variable.
'''How to get the length of a string variable?
len("what is your name") # it will return 17 as the lengthHow to access a specific character in a string?
How to slice the string?
Escape Character(\) and Escape Sequences(" , ' , \\ , \n)
Joining the string using concatenation
String Methods
Convert string to upper case, lower case, and capitalize the first letter of every word
Trim any white space at the beginning or end of the string or from both end and start
To find a sequence of character from a string
To replace a character or sequence of character from a string
To find the existence of character or sequence of character in a string
Numerical Data Type
Arithmetic Operators
Working with numbers
Typecasting
Boolean Data Type
Last updated