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

12 lines
223 B
Python
Raw Normal View History

2023-10-27 15:59:23 -06:00
# 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()