Report Bug

Qus

What will be the output of the following Python code, if the sys module has already been imported?

sys.stdout.write("hello world")

Qusनिम्नलिखित Python कोड का आउटपुट क्या होगा, अगर sys मॉड्यूल पहले से इम्पोर्ट किया गया है?


A. helloworld
B. hello world10
C. hello world11
D. error


Solution
C. hello world11



Explanation
The function shown above prints the given string along with the length of the string. Hence the output of the function shown above will be hello world11.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad