mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
Update min-cost-string-conversion.py
This commit is contained in:
parent
6abab54c2b
commit
0deb227705
|
@ -1,7 +1,7 @@
|
|||
from __future__ import print_function
|
||||
|
||||
try:
|
||||
xrange #Python 2
|
||||
xrange #Python 2
|
||||
except NameError:
|
||||
xrange = range #Python 3
|
||||
|
||||
|
@ -120,4 +120,4 @@ if __name__ == '__main__':
|
|||
print('Cost: ', cost)
|
||||
|
||||
file.write('\r\nMinimum cost: ' + str(cost))
|
||||
file.close()
|
||||
file.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user