გამარჯობა, არის პითონის ფაილი, თავისივე ტესტებით, 14 დან 9 გადის, 5 იჭრება, მინდა იმ 5ის გასწორება. კოდი დაწერილია typing-ის სტილით ->
https://docs.python.org/3/library/typing.htmlდებაგიც ამავე სტილით უნდა ჩასწორდეს.
ვადა არის დღევანდელი ღამის 12-მდე (6 აგვისტოს ჩათვლით).
ამოცანა არის cartesian ნამრავლი nested ლისტებზე.
მითითება:
(1) Elements of type List consist of lists of dictionaries with identical keys (although keys can be missing).
(2) Elements of type Dictionary consist of dicts of dictionaries with identical keys (although keys can be missing).
(3) When the nested element is of the Dictionary type, the first column is the Dictionary key. So if each element of a Dictionary has five fields, then we expect that Dictionary to add six columns to each row: one for the key, five for the fields.
This is why the test_empty_nested_dictionary expects four columns: there are is one dictionary inside another. The outer dictionary has as a text field and the inner dictionary, and the inner dictionary has a text field. So we have two text field columns and two key columns: four columns.
ვინც პირველი ატვირთავს აქ ღამის 12-მდე სოლუშენს იმას გადავუხდი 100 ლარს.
კოდი უნდა ეშვებოდეს python 3.7 ში
კოდი:
https://pastebin.com/p7y3R2kQიმედია სწორ ადგილას გავხსენი.