<jupyter_start><jupyter_text>Домашнее задание к лекции "Введение в типы данных и циклы. Часть 1"**Задание 1**<jupyter_code>my_string='test'
my_string[1:3]
my_string='testing'
my_string[3]<jupyter_output><empty_output><jupyter_text>**Задание 2**<jupyter_code>numbers=[1,4,6,0]
sum(numbers)
numbers=[0]
sum(numbers)<jupyter_output><empty_output><jupyter_text>**Задание 3**<jupyter_code>boys_list=['Peter', 'Alex', 'John', 'Arthur', 'Richard']
girls_list=['Kate', 'Liza', 'Kira', 'Emma', 'Trisha']
sorted(boys_list)

sorted(girls_list)
perfet_couples=[['Alex','Emma'],['Arthur','Kate'],['John','Kira'],['Peter','Liza'],['Richard','Trisha']]
print(perfet_couples[0])
print(perfet_couples[1])
print(perfet_couples[2])
print(perfet_couples[3])
print(perfet_couples[4])

boys_list = ['Peter', 'Alex', 'John', 'Arthur', 'Richard', 'Michael']
girls_list = ['Kate', 'Liza', 'Kira', 'Emma', 'Trisha']

sorted(girls_list)
sorted(boys_list)
#не поняла как делать.<jupyter_output><empty_output><jupyter_text>**Задание 4**<jupyter_code>countries_temperature = [
    ['Thailand', [75.2, 77, 78.8, 73.4, 68, 75.2, 77]],
    ['Germany', [57.2, 55.4, 59, 59, 53.6]],
    ['Russia', [35.6, 37.4, 39.2, 41, 42.8, 39.2, 35.6]],
    ['Poland', [50, 50, 53.6, 57.2, 55.4, 55.4]]
]

print('Средняя температура в странах:')
for i in range(len(countries_temperature)):
    print(countries_temperature[i][0],round((sum(countries_temperature[i][1])/len(countries_temperature[i][1])-32)/1.8,1),"C")<jupyter_output>Средняя температура в странах:
Thailand 23.9 C
Germany 13.8 C
Russia 3.7 C
Poland 12.0 C
{'fraction_non_alphanumeric': 0.21374045801526717, 'fraction_numerical': 0.06615776081424936, 'mean_word_length': 8.419161676646707, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '106689', 'license': 'MIT', 'n_tokens_mistral': 772, 'n_tokens_neox': 706, 'n_words': 111, 'path': 'HomeWork2.ipynb', 'repo_name': 'ekate-canc/HomeWorkPY2', 'size': '1572'}