Skip to main content

cocktail_sorting

Project description

Практическая работа №6 - Модульные программы

Эрлан Назарбеков, КИ22-16/1Б, Вариант 24

$ python example.py -v — примеры

$ python generate_random.py — функция для генерации случайного списка

$ python sort_acdending.py — функция для сортировки перемешиванием (по возрастанию)

$ python sort_decsending.py — функция для сортировки перемешиванием (по убыванию)

example:

from op_package import cocktail_sort_increasing

print(cocktail_sort_increasing([5, 6, 8, 3, 2, 1]))

from op_package import cocktail_sort_decreasing

print(cocktail_sort_decreasing([5, 6, 8, 3, 2, 1]))

[1, 2, 3, 5, 6, 8]

[8, 6, 5 ,3 ,2, 1]

Project details


Release history Release notifications | RSS feed

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocktail_sort-1.2.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file cocktail_sort-1.2.tar.gz.

File metadata

  • Download URL: cocktail_sort-1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for cocktail_sort-1.2.tar.gz
Algorithm Hash digest
SHA256 0ea830f6022896931ec2a20f4a378f1e2fa1acae821caee8fffeeb3b9f2ca5a3
MD5 907b1cfd3bb6fb836232a682dfa442e1
BLAKE2b-256 e44c6d10bf2a757ad46a52864cba806fbd5256bbe7de6d76903e7e050f3a36a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page