This file contains 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
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.8/code.py", line 90, in runcode | |
exec(code, self.locals) | |
File "<console>", line 1, in <module> | |
File "/usr/local/lib/python3.8/site-packages/jwt/api_jwt.py", line 64, in encode | |
return super(PyJWT, self).encode( | |
File "/usr/local/lib/python3.8/site-packages/jwt/api_jws.py", line 113, in encode | |
key = alg_obj.prepare_key(key) |
This file contains 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
import datetime | |
from typing import Dict, List | |
from apps.orders.models import OrderQuerySet | |
def split_by_order_dates(available_dates: List[Dict[str, datetime.datetime]], | |
ordered_dates: 'OrderQuerySet') -> List[Dict[str, datetime.datetime]]: | |
""" |
This file contains 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
my_dict = {} | |
num = int(input()) | |
for x in range(num): | |
word = input() | |
if word in my_dict: | |
my_dict[word] += 1 | |
else: | |
my_dict[word] = 1 |