Skip to content

Instantly share code, notes, and snippets.

#Прошлогодний тест задача L - сумма делителе C
import math
def C_nk(n, k): #вернет список множителей
denominator=k
to_be_cancelled=n-k
if n-k<k:
denominator=n-k
to_be_cancelled=k
numerator_max=n
@zebrabug
zebrabug / README.md
Created December 27, 2018 08:37 — forked from magnetikonline/README.md
Python - comparing JSON data structures.

Python - comparing JSON data structures

A function compare_json_data(source_data_a,source_data_b), accepting structures populated with data loaded from json.load() and comparing for equality.

Example

$ python compare.py 
Compare JSON result is: True

JSON files a.json and b.json are loaded via load_json() function and structures passed into compare_json_data() for comparison.

@zebrabug
zebrabug / roll_ipython_in_aws.md
Created January 9, 2016 19:54 — forked from iamatypeofwalrus/roll_ipython_in_aws.md
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time