🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

आप वेरिएबल a को लंबाई 1 का टपल कैसे असाइन करते हैं? (सभी सही हैं की जाँच करें।)

How do you assign a tuple of length 1 to the variable a? (Check all that are correct.)

A)
B)
C)
D)

Explanation:

To create a tuple of length 1, you must include a comma after the value:

  • (A) a = (1,) is correct.
  • (B) a = 1, is not valid.
  • (C) a = [1] creates a list, not a tuple.
  • (D) a = 1 assigns an integer, not a tuple.

So, the correct answer is (A).

Latest Updates