PYTHONJUNIORJOB Telegram 852
#вопрос246

Напишите функцию, которая преобразует список символов в список словарей, где ключи – это сами символы, а значениями являются ASCII-коды этих символов.

Примеры:

to_dict(["a", "b", "c"]) ➞ [{"a": 97}, {"b": 98}, {"c": 99}]

to_dict(["^"]) ➞ [{"^": 94}]

to_dict([]) ➞ []
👍3



tgoop.com/pythonjuniorjob/852
Create:
Last Update:

#вопрос246

Напишите функцию, которая преобразует список символов в список словарей, где ключи – это сами символы, а значениями являются ASCII-коды этих символов.

Примеры:

to_dict(["a", "b", "c"]) ➞ [{"a": 97}, {"b": 98}, {"c": 99}]

to_dict(["^"]) ➞ [{"^": 94}]

to_dict([]) ➞ []

BY Python вопросы на собеседовании с ответами


Share with your friend now:
tgoop.com/pythonjuniorjob/852

View MORE
Open in Telegram


Telegram News

Date: |

The best encrypted messaging apps As of Thursday, the SUCK Channel had 34,146 subscribers, with only one message dated August 28, 2020. It was an announcement stating that police had removed all posts on the channel because its content “contravenes the laws of Hong Kong.” ZDNET RECOMMENDS Judge Hui described Ng as inciting others to “commit a massacre” with three posts teaching people to make “toxic chlorine gas bombs,” target police stations, police quarters and the city’s metro stations. This offence was “rather serious,” the court said. “[The defendant] could not shift his criminal liability,” Hui said.
from us


Telegram Python вопросы на собеседовании с ответами
FROM American