mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 10:48:58 +08:00
Simplify code by dropping support for legacy Python (#1143)
* Simplify code by dropping support for legacy Python * sort() --> sorted()
This commit is contained in:
@ -18,12 +18,6 @@ What is the total of all the name scores in the file?
|
||||
import os
|
||||
|
||||
|
||||
try:
|
||||
xrange # Python 2
|
||||
except NameError:
|
||||
xrange = range # Python 3
|
||||
|
||||
|
||||
def solution():
|
||||
"""Returns the total of all the name scores in the file.
|
||||
|
||||
|
Reference in New Issue
Block a user