0

LIST SUM FILTERS (HELP ME PLEAS)

'''HELP ME FRIENDS: 1. To need code with filter "m" (month '23.#01#.2019',) by list DATE 2. Thеn list NAME by "f" (for example "Vadim Paritskij") 3. Finaly list HOURS_SPENT == "m" and "f" and add up to one sum! Thanks so much. Sorry my English!''' DATE = ['23.07.2019', '23.01.2019', '23.01.2019', '23.02.2019', '27.07.2019', '23.06.2019', '29.08.2019', '30.07.2019', '31.07.2019', '01.11.2019', '07.09.2019', '03.08.2019', '23.01.2019'] NAME = ['Olha Korozhuk', 'Vadim Parnitskij', 'Olha Korozhuk', 'Vadim Parnitskij', 'Olha Korozhuk', 'Vadim Parnitskij', 'Olha Korozhuk', 'Stepan Banik', 'Vadim Parnitskij', 'Stepan Banik', 'Vadim Parnitskij', 'Stepan Banik', 'Vadim Parnitskij'] HOURS_SPENT = ['1', '8', '7', '6', '8', '6,5', '1', '1', '8', '7', '6', '8', '6,5'] #INPUT VALUMS f = 'Vadim Parnitskij' m = '23.01.2019' # months list_data = [] list_name = [] for x in DATE: s1 = [] if x in x == m

25th Sep 2019, 10:33 PM
Вадим Парницький
Вадим Парницький - avatar
1 Respuesta
0
This is realy complex. nobody will write you a full code. you should start with it and only ask when you dont know further of if you have bugs/problems.
27th Oct 2019, 11:44 AM
Steven Taskin
Steven Taskin - avatar