Modernize Python 2 code to get ready for Python 3

This commit is contained in:
cclauss
2017-11-25 12:41:55 +01:00
parent 4e06949072
commit e31c780d94
17 changed files with 38 additions and 9 deletions

View File

@ -7,6 +7,8 @@ This is a pure Python implementation of Dynamic Programming solution to the edit
The problem is :
Given two strings A and B. Find the minimum number of operations to string B such that A = B. The permitted operations are removal, insertion, and substitution.
"""
from __future__ import print_function
class EditDistance:
"""

View File

@ -1,6 +1,7 @@
"""
This is a pure Python implementation of Dynamic Programming solution to the fibonacci sequence problem.
"""
from __future__ import print_function
class Fibonacci: