Home / MCQ Bank / Computer
Computer Lists In Python Difficulty: Medium

What will be the output of the following Python code? s="a@b@c@d" a=list(s.partition("@")) print(a) b=list(s.split("@",3)) print(b)

Select the correct option to test your answer:

More Computer Questions

With x = 0, which of the following are legal lines of Java code for changing the value of x to 1? 1. x++; 2. x = x + 1; 3. x += 1; 4. x =+ 1; What arithmetic operators cannot be used with strings in Python? Which of the following property applies one or more shadows to text? Which of the following best describes the purpose of data sampling in Data Science? A task in a blocked state