Логично, не нужно. Начал это делать буквально читая каждый пункт задания
1. Login to any email box. 2. Send from 10 mails from current box to yourself with: • Theme: Random string with 10 symbols (letters and numbers only) • Body: Random string with 10 symbols (letters and numbers only) 3. Check that all 10 mails are delivered. 4. Collect data from all incoming mails and save it as Object (Dictionary), where: • Key is theme of mail • Value is body of mail 5. Send collected data to yourself as: “Received mail on theme {Theme} with message: {Body}. It contains {Count of letters} letters and {Count of numbers} numbers” (repeat for each mail). 6. Delete all received mails except the last one.
А сразу задачу в таком виде отправить?
Разрешаю
dct = {'theme1': 'body1'} for theme, body in dct.items(): send(theme, body)
Спасибо тебе человек, буду за компом опробую твой совет
`mails = {i: i for i in range(100)} for theme, body in mails.items(): print('theme: ', theme, ' body ', body) `
Обсуждают сегодня