Skip to content

Instantly share code, notes, and snippets.

View filinvadim's full-sized avatar
🏠
Working from home

Vadim Filin filinvadim

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Джанго</title>
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
<script src="/static/js/bootstrap.min.js"></script>
</head>
customers_balance_true = [25, 25, 25, 100]
customers_balance_false = [25, 25, 50, 100, 100]
def having_odd_money(money):
cinema_balance = 0
for banknote in money:
if banknote == 25:
cinema_balance += banknote
elif banknote == 50:
cinema_balance += banknote/2
# -*- coding: utf-8 -*-
import urllib3
import bs4
import requests
from lxml import html
import argparse
source_url = 'http://python.org'
def get_python_events_bysoup(url):