Escape characters: \n and \t : String Escape « String « Python






Escape characters: \n and \t

Escape characters: \n and \t
 
s = 'a\nb\tc'
print s


           
         
  








Related examples in the same category

1.Escape Codes: \b, \t, \n, \a, \rEscape Codes: \b, \t, \n, \a, \r
2.Demonstrates the use of quotes in strings
3.String escape sequences DemoString escape sequences Demo