adplus-dvertising
frame-decoration

Question

What is the output of the code shown below, if the code is run on Windows operating system?
import sys
if sys.platform[:2]== 'wi':
	print("Hello")

a.

Error

b.

Hello

c.

No output

d.

Junk value

Answer: (b).Hello

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown below, if the code is run on Windows operating system?