Prepare for Coding Interview – Strings In Python Interview Questions With Examples From Python

    15
    7



    Strings in Python. Prepare for Coding Interview. Programming Interview Questions and Answers. Mastering the Coding Interview With Examples From Python – Part 3

    In this lecture we Will Review Strings using Python Language.
    Discussion about Clarifying questions is there as well. We will Practice Problems for String in Jupyter notebook using Python Language. Sample Coding Interview Question about Strings is Discussed and Visual and Programming Solution is Given at the End.

    You can Watch Full Playlist Here:

    -~-~~-~~~-~~-~-
    Please watch: “How to Calculate Age from Date of Birth in Excel in Years Months and Days (Simple Formula)”

    -~-~~-~~~-~~-~-

    source

    Previous articleWipro Bangalore first round DevOps Engineer 4+
    Next articleKubernetes – Manage TLS Certificates, CA, Certificate Signing Request CSR, Signers, Usage

    7 COMMENTS

    1. For any strings containing only alphanumeric characters a is b returns True.

      But if i add any other symbol, it returns False. for example:

      >>> a='ab-c'

      >>> b='ab-c'

      >>> a is b

      False

      >>> a='1ab'

      >>> b='1ab'

      >>> a is b

      True

      >>>

      I also tried

      from sys import intern

      a=intern('ab-c')

      b=intern('ab-c')

      a is b #True

      May i know why it is happening? May i know what is this intern?