Home »
Python »
Python Tuples MCQs
What will be the output of the following code? | Tuples Que. 26
26. What will be the output of the following code?
t1=("hello","everyone","include helps","welcomes","you","all")
del t1
print(t1)
- name 't1' is not defined
- ("hello","everyone","include helps","welcomes","you","all")
- Hello, everyone, include helps
Answer: A) name 't1' is not defined
Explanation:
Since the del t1 command is there so it will delete the entire t1 tuple so when you will print the t1 it will show you the- name 't1' is not defined.