mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Travis CI: Add a flake8 test for unused imports (#1038)
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user