I am a beginner python user and I am stuck with a time-calculator program I am trying to create as part of an online certification. The program will calculate in an AM/PM format the time it is added from the initial time and the correct weekday. I have been having problems with this part as for reasons unknown to me
Tag: repeat
Python: How to pass output of the map function as arguments
I need to pass some arguments to the starmap_async function. I have a list my_list that has different values in it and some constants that are repeated. I have a way to pass the arguments as bellow: It works and generates arguments like this which is the desired output: Now I want to use the map function to do something
Repeat list elements based in another list
I would like to repeat elements from one list based in a second list, like this: I’ve got this result: I’d like to get this result: Answer You may iterate on both list together, using zip, then increase i until you reach the bound of the current value