Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Escape Characters:

Vinay Rawal answered on April 1, 2023 Popularity 10/10 Helpfulness 1/10

Contents


More Related Answers

  • c# Escape sequence
  • `'` can be escaped with `'`, `‘`, `'`, `’`.eslintreact/no-unescaped-entities
  • html escape characters
  • Escape character | Batch
  • escape code tab char
  • c# escape characters
  • regex special characters to escape
  • regex to escape special characters
  • escape in sql
  • escape character in python
  • escape characters c++
  • escape-character-in-sql-server
  • python escape {}
  • escape
  • JavaScript Escape Character
  • escape character python
  • python escape character example
  • what are the escape characters in python
  • escape in c#
  • Escape Character Javascript
  • Remove escape characters from JSON Data
  • regular expression escape character
  • escape sequence
  • What are escape characters in javascript
  • c# Escape sequence
  • Unicode Codepoint Escape Syntax
  • detect escape characters js
  • escaping - How to escape a JSON string containing newline characters using JavaScript?
  • cron escape characters

  • Escape Characters:

    0

    In String literals we can use esacpe characters to associate a special meaning. 1) >>> s="durga\nsoftware" 2) >>> print(s) 3) durga 4) software 5) >>> s="durga\tsoftware" 6) >>> print(s) 7) durga software 8) >>> s="This is " symbol" 9) File "", line 1 10) s="This is " symbol" 11) ^ 12) SyntaxError: invalid syntax 13) >>> s="This is \" symbol" 14) >>> print(s) 15) This is " symbol The following are various important escape characters in Python

    1) \n 2) \t 3) \r 4) \b 5) \f 6) \v 7) \' 8) \" 9) \\ ....

    Constants:

     Constants concept is not applicable in Python.  But it is convention to use only uppercase characters if we don’t want to change value.

     MAX_VALUE = 10

     It is just convention but we can change the value.  New Line  Horizontal Tab  Carriage Return  Back Space  Form Feed  Vertical Tab  Single Quote  Double Quote  Back Slash Symbol 

    Popularity 10/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 01 2023
    Vinay Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.