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(4))

What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs(4))
a) ab  cd  ef
b) abcdef
c) ab\tcd\tef
d) ab cd ef

Answer: d
Explanation: Each \t is converted to 4 blank spaces.

Join The Discussion