python_exercises/thinkcspy/Chapter-11-Exercises/Problem1.py

12 lines
No EOL
223 B
Python

# Runestone.Academy thinkcspy course
# Chapter 11
# Problem 1
sdfile = open("studentdata.txt", "r")
for line in sdfile:
student = line.split()
if len(student[1:]) > 6:
print(student[0])
sdfile.close()