الرجوع
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع انتقل إلى كاتوديمي ←

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)