User input

This commit is contained in:
Harshil Darji 2016-07-29 11:21:57 +05:30
parent 0f1145ca7e
commit f52470e5de

View File

@ -22,7 +22,9 @@ def partition(A, p, r):
if __name__ == "__main__":
A = [8, 4, 5, 7, 1, 2, 3, 6]
print('Enter values seperated by space:')
A = [int (item) for item in input().split(' ')]
# A = [23, 45, 43, 12, 67, 98, 123, 99]
# partition(A, 0, 7)
print(A)
quicksort(A, 0, 7)