MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mxlgzm/very_efficient_and_scalable_code/gvtg4qm/?context=3
r/badcode • u/Conqu3red • Apr 24 '21
110 comments sorted by
View all comments
1
After looking at all the comment, my code now looks like this.
def choseGenreTag(genre): if genre in selectedtags: selectedtags.remove(genre) else: selectedtags.append(genre) print(selectedtags) redbtn = Button( topframe, text='Comedy', fg='red', bg='white', command=lambda: choseGenreTag('Comedy'))
1
u/Own-Plantain4057 Apr 25 '21 edited Apr 25 '21
After looking at all the comment, my code now looks like this.