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

What will be the output of the following Python code snippet? print('abcdef12'.replace('cd', '12'))

Select the correct option to test your answer:

More Computer Questions

. . . . . . . . is the program or automated script which browses the World Wide Web (WWW) in a methodical, automated manner. Which header file is used for the numeric limits in C++? What is the output of the given code? if(a==10 && b=9) print "true" else print "false" end Save operation means What will be the output of the following C# code? static void Main(string[] args) { String obj = "hello"; String obj1 = "worn"; String obj2 = obj; Console.WriteLine(obj + " " + (obj1.Replace('w' ,'c'))); Console.ReadLine(); }