Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the following?

    x = "abcdef"
    i = "i"
    while i in x:
        print(i, end=" ")
  2. A.
    no output
    B.
    i i i i i i "¦
    C.
    a b c d e f
    D.
    abcdef

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    "i is not in "abcdef.


Be The First To Comment