i created a library managment system but it would just skip the steps and run all the way down

i created a library manangment system with various switch cases and loops and breaks statements however sometimes it works absolutely fie however sometimes it runs the commands and follows all the statement after that particular switch statement my code is as undergiven https://onlinegdb.com/aYdKFJSTy i tired researching on various sites and with my collegues but no… Read More i created a library managment system but it would just skip the steps and run all the way down

basic python / sort messy dictionary

I have eg p_deck={3:12, 5:23, 6:8, 9:47, 10:18} and need p_deck={0:12, 1:23, 2:8, 3:47, 4:18} what is the most efficient way of doing it? I tried: p_deck={3:12, 5:23, 6:8, 9:47, 10:18} p_keys_list=[] p_values_list=[] p_length=0 def order(): global p_keys_list global p_values_list global p_length p_keys_list=p_deck.keys() p_values_list=p_deck.values() p_length=len(p_deck) p_deck={} for i in p_length: p_deck[i]={p_keys_list[i]:p_values_list[i]} return But this results… Read More basic python / sort messy dictionary

Having trouble figuring out how to list the number of "albums" associated with specific artists

so I’m doing an SQL exercise that requires me to list the names of artists that made more than 6 albums. I’ve successfully managed to list the names of the artists with 6+ albums and the first album that comes up in the table for each artist, however I can’t figure out how to list… Read More Having trouble figuring out how to list the number of "albums" associated with specific artists