mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-01 00:41:09 +00:00
commit
9faaebcc80
|
@ -44,6 +44,6 @@ if __name__ == '__main__':
|
||||||
except NameError:
|
except NameError:
|
||||||
raw_input = input # Python 3
|
raw_input = input # Python 3
|
||||||
|
|
||||||
user_input = raw_input('Enter numbers separated by a comma:\n').stript()
|
user_input = raw_input('Enter numbers separated by a comma:\n').strip()
|
||||||
unsorted = [int(item) for item in user_input.split(',')]
|
unsorted = [int(item) for item in user_input.split(',')]
|
||||||
print(bogosort(unsorted))
|
print(bogosort(unsorted))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user