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

str Data Type:

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

Contents


More Related Answers

  • how to check datatype of a variable in c++
  • python datatype print
  • All data types in C++
  • Data Types in C++
  • c string data type
  • how to know datatype of something in c++
  • python datatypes
  • data types in c++
  • c++ data types
  • C++ Data Types
  • data type c++
  • print different variable datatype
  • String data types
  • Python’s Data Types#

  • str Data Type:

    0

    str represents String data type.  A String is a sequence of characters enclosed within single quotes or double quotes.

     s1='durga'  s1="durga"  By using single quotes or double quotes we cannot represent multi line string literals.

     s1="durga soft"

     For this requirement we should go for triple single quotes(''') or triple double quotes(""")

     s1='''durga soft'''

     s1="""durga soft"""

     We can also use triple quotes to use single quote or double quote in our String.  ''' This is " character''' ' This i " Character '

     We can embed one string in another string  '''This "Python class very helpful" for java students''' 

    Popularity 1/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.