الرجوع
تسجيل الدخول

What is the output of the following code if data.txt contains the text "Hello World"?

fhand = open('data.txt')
for line in fhand:
    line = line.rstrip()
    if line.startswith('Hello'):
        print(line)