Update min-cost-string-conversion.py

This commit is contained in:
Daniel Ingram 2018-03-20 18:50:55 -04:00 committed by GitHub
parent 6abab54c2b
commit 0deb227705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
from __future__ import print_function from __future__ import print_function
try: try:
xrange #Python 2 xrange #Python 2
except NameError: except NameError:
xrange = range #Python 3 xrange = range #Python 3
@ -120,4 +120,4 @@ if __name__ == '__main__':
print('Cost: ', cost) print('Cost: ', cost)
file.write('\r\nMinimum cost: ' + str(cost)) file.write('\r\nMinimum cost: ' + str(cost))
file.close() file.close()