what is string?
it's just a collection
of characters
what is called a character?
alphabets (a,b,c,A,B...)
numbers (1,2,3,...)
symbols (#,$,%,.,..)
white spaces (' ',escape sequence)
what is called a escape sequence?
it has a specific purpose to do while executing
the code '\n' - new line; '\t' - tab space
'\r' - return carriage
'\' this is called backward slash
how to represent a string?
using single quotes - 'welcome'
double quotes - "welcome"
triple quotes - '''welcome'''
triple double quotes - """welcome"""
rule to represent the strings:
single quotes cannot be used inside the single quotes