questions = {'4+4': 8, '3*4': 12, '3+7': 10, '9-7': 2}
question, answer = random.choice(list(questions.items()))
user = int(input())
if answer == user:
# ...
from ast import literal_eval
if literal_eval(vivod) == user:
from bs4 import BeautifulSoup
soup = BeautifulSoup('''<html lang="en"><body><ul class="product-item_params">
<li>
<span class="product-item_params_name">Бренд:</span>
<span class="product-item_params_value">Домик </span>
</li>
</ul></body></html>''', 'html.parser')
print(soup.find('span', {'class': 'product-item_params_value'}).text)
dir(now)
['__add__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__radd__', '__reduce__', '__reduce_ex__', '__repr__', '__rsub__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', 'astimezone', 'combine', 'ctime', 'date', 'day', 'dst', 'fold', 'fromordinal', 'fromtimestamp', 'hour', 'isocalendar', 'isoformat', 'isoweekday', 'max', 'microsecond', 'min', 'minute', 'month', 'now', 'replace', 'resolution', 'second', 'strftime', 'strptime', 'time', 'timestamp', 'timetuple', 'timetz', 'today', 'toordinal', 'tzinfo', 'tzname', 'utcfromtimestamp', 'utcnow', 'utcoffset', 'utctimetuple', 'weekday', 'year']
время в минутах и секундах
USERNAME_FIELD
class User(models.Model):
username = models.CharField(max_length=30, unique=True)
email = models.EmailField(blank=True)
password = models.CharField(max_length=30)
password1 = models.CharField(max_length=30)
USERNAME_FIELD = 'username'
import telebot
pip3 install pytelegrambotapi,telebot