# ====================================================================================||
# ||         Python - Escape Characters                                               ||
# ||                                                                                  ||
# ||                                                                                  ||
# ||==================================================================================||
# >>>>Escape Character<<<<<<<
# To insert characters that are illegal in a string ,use an escape character
# An Escape character is a backslash \ followed by the character you want to insert.
# An Example of an illegal characters is a double quote inside a string that is surrounded by double quotes:
# E.g
# you will get an error if you use double quotes inside a string that is surrounded by double quotes.
# txt="We are the so-called "Vikings" from the north."
# print(txt)
# to fix this problem ,use the escape character \:
# E.g
# the escape character allows you to use double quotes when you normally would not be allowed:
# txt="We are the so-called \"Vikings\" from the north."
# print(txt)
# ______________________________________________________________________________________________________________________
# >>>>Escape Character<<<<<<
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 1.\ '                               Single Quote
# E.g
# txt='It\'s alright.'
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 2.\\                                  Backslash
#E.g
# txt="This will insert one \\ (backslash)"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 3.\n                              New Line
# E.g
# txt="Hello\n world!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 4.\r                              carriage return
# E.g
# txt="Hello\rWorld"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 5.\t                              tab
# E.g
# txt="Hello\tWorld!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 6.\f                              form Feed.
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 7.\b                              Backspace
# E.g
# txt="Hello\bWorld!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 8.\ooo                            Octal value
# e.g
# A backslash followed by three integer will result in a octal value.
# txt="\110\145\154\154\157"
# print(txt)
# txt="\111\112\123\124\123"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 9.\xhh                            Hex value
# A backslash followed by an 'x' and a hex number represents a hex value.
# txt="\x48\x65\x6c\x6c\x6f"
# print(txt)
#                                       ****
f9b30ab7f432f2ad162d113e62c2af8a5abc2933
# ====================================================================================||
# ||         Python - Escape Characters                                               ||
# ||                                                                                  ||
# ||                                                                                  ||
# ||==================================================================================||
# >>>>Escape Character<<<<<<<
# To insert characters that are illegal in a string ,use an escape character
# An Escape character is a backslash \ followed by the character you want to insert.
# An Example of an illegal characters is a double quote inside a string that is surrounded by double quotes:
# E.g
# you will get an error if you use double quotes inside a string that is surrounded by double quotes.
# txt="We are the so-called "Vikings" from the north."
# print(txt)
# to fix this problem ,use the escape character \:
# E.g
# the escape character allows you to use double quotes when you normally would not be allowed:
# txt="We are the so-called \"Vikings\" from the north."
# print(txt)
# ______________________________________________________________________________________________________________________
# >>>>Escape Character<<<<<<
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 1.\ '                               Single Quote
# E.g
# txt='It\'s alright.'
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 2.\\                                  Backslash
#E.g
# txt="This will insert one \\ (backslash)"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 3.\n                              New Line
# E.g
# txt="Hello\n world!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 4.\r                              carriage return
# E.g
# txt="Hello\rWorld"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 5.\t                              tab
# E.g
# txt="Hello\tWorld!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 6.\f                              form Feed.
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 7.\b                              Backspace
# E.g
# txt="Hello\bWorld!"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 8.\ooo                            Octal value
# e.g
# A backslash followed by three integer will result in a octal value.
# txt="\110\145\154\154\157"
# print(txt)
# txt="\111\112\123\124\123"
# print(txt)
# ______________________________________________________________________________________________________________________
# Code                              Result
# ______________________________________________________________________________________________________________________
# 9.\xhh                            Hex value
# A backslash followed by an 'x' and a hex number represents a hex value.
# txt="\x48\x65\x6c\x6c\x6f"
# print(txt)
#                                       ****