mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-21 04:13:31 +08:00
Modernize Python 2 code to get ready for Python 3
This commit is contained in:
@ -9,6 +9,7 @@ Given nums = [2, 7, 11, 15], target = 9,
|
||||
Because nums[0] + nums[1] = 2 + 7 = 9,
|
||||
return [0, 1].
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
def twoSum(nums, target):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user