Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def openfile():
- with open(f'{input()}', 'r') as file:
- lines = file.read().splitlines()
- return lines
- def checkcode(lines):
- for idx, line in enumerate(lines):
- if len(line) > 79:
- print(f"Line {idx + 1}: S001 Too long")
- checkcode(openfile())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement