PCEP 30 02 PCEP Certified Entry Level Python Programmer · Free Practice Question Easy

Question 13

Which of the following is not of type tuple?

  • A

    Tup=( )

  • B

    Tup=(6)

  • C

    Tup=(6, )

  • D

    Tup=6,

Reveal correct answer

Correct answer: B

Explanation

A Tuple can be with parenthesis or without parenthesis.

If there is a single member in a Tuple, you must place a comma(,) after the member else it will not be a Tuple.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need