My loop not work and not display all schedule classes with times. Thanks you sir. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

My loop not work and not display all schedule classes with times. Thanks you sir.

Display loop in function. https://code.sololearn.com/c848HtXyjUN8/?ref=app

20th Oct 2021, 5:59 AM
Malick Diagne
Malick Diagne - avatar
2 Answers
+ 2
You can achieve the goal by using `zip()` function, which combines items from 2 iterables. classes_times = list( zip( classes, times ) ) P.S. Please use proper tags, you can tag Python to improve language context clarity. https://code.sololearn.com/W3uiji9X28C1/?ref=app
20th Oct 2021, 6:12 AM
Ipang
+ 2
Malick Diagne you've been epeatedly asked to use relevant tags -- especially the language you're asking about. You've also repeatedly been told how to do so.
20th Oct 2021, 8:27 AM
Simon Sauter
Simon Sauter - avatar