This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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): |
NewerOlder