Home / MCQ Bank / Computer
Computer Regular Expressions In Python Difficulty: Medium

What is the output of the following code: import re result = re.sub(r'd+', 'number', 'There are 5 apples and 3 oranges.') print(result)

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C code? #include<stdio.h> enum class { a,b,c }; enum class m; main() { printf("%d",sizeof(m)); } What will be the output of the given program? #include<stdio.h> void main() { int value1, value2=100, num=100; if(value1=value2%5) num=5; printf("%d %d %d", num, value1, value2); } Correct way to find if contents of two strings are equal? You can tell when an object is active because Which is not a reserved character?