Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs(‘+’))

What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs(‘+’))
a) ab+cd+ef
b) ab++++++++cd++++++++ef
c) ab cd ef
d) none of the mentioned

Answer: d
Explanation: TypeError, an integer should be passed as an argument.

Join The Discussion