Examveda

What will be the output of the following Python code?
import sys
sys.stdout.write(' Hello\n')
sys.stdout.write('Python\n')

A. Compilation Error

B. Runtime Error

C. Hello Python

D. Hello
Python

Answer: Option D


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python