Content
communitysort.py X communitysort.py from time import sleep import reddit api wrapper def community sort(list to sort: list): 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 if 26 27 message "iPresentCommunitySortBTWWhats" "". join(str(i) for i in listtosort) "Sorted" community redditapiwrapper.getCommunity(‘rProgrammerHumor") my post community. post (message, image file-"screenshot196912312200 .png") sleep (6 60 60) correctanswer mypost. fetchanswers (sortedby ‘top) 0 return eval(correct answer) This is fine def main): unsortedlist 100, 81, 119, 52, 119, 57, 87, 103, 88, 99, 81 sorted list community sort (unsorted list) print("The sorted list is:", sortedlist) name main main()