Computer Science, asked by AtharvaBarge, 1 month ago

Print the following string by using escape characters : We are "VIKINGS" of the north.

Answers

Answered by surajsuman423
4

Answer:

txt = "We are the so-called \"Vikings\" from the north."

use escape characters \"

Answered by dreamrob
4

Answer:

print("We are \"VIKINGS\" of the north.")

To insert those characters that are invalid in a string, we make use of escape character. Just put backslash "\" before the character you want to insert.

Some escape characters are:

\' - Single Quote

\\ - Backslash

\n - New line

\t - Tab

\b - Blank space

Examples:

print("Have a wonderful day. \n")

print("Name\tNirali Saxena \nCity\tLucknow")

Output:

Have a wonderful day.  

Name Nirali Saxena  

City Lucknow

Similar questions