الرجوع
تسجيل الدخول
أنت تتصفح نسخة مؤرشفة من الموقع اضغط للانتقال إلى الموقع الجديد بكامل المزايا

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)