Travis CI: Add a flake8 test for unused imports (#1038)

This commit is contained in:
Christian Clauss
2019-07-25 09:49:00 +02:00
committed by Anshul
parent 46bcee0978
commit 3c8e9314b6
5 changed files with 212 additions and 221 deletions

View File

@ -3,18 +3,12 @@ Problem Statement:
Work out the first ten digits of the sum of the following one-hundred 50-digit
numbers.
"""
from __future__ import print_function
import os
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
def solution(array):
"""Returns the first ten digits of the sum of the array elements.
>>> import os
>>> sum = 0
>>> array = []
>>> with open(os.path.dirname(__file__) + "/num.txt","r") as f: