This is my list:
biglist = [ {'title':'U2','link':'u2.com'}, {'title':'beatles','link':'beatles.com'} ] print random.shuffle(biglist)
this does not work! It does not return anything.
random.shuffleshuffles the list, it does not return a new list. So check biglist, not the result random.shuffle.
random.shuffle
biglist
Documentation for the module random: http://docs.python.org/library/random.html
random
Source: https://habr.com/ru/post/1719492/More articles:Which way is better for Linq Select Query or For Loop for finding something in the general list? - c #Простой вывод типа в Scala - scalacatching exceptions - general doubts - c #Does Tycho work with Eclipse 3.5 - eclipseJTidy update violated xpaths document - javaC # Get the difference between two files and use it for incremental backups - c #Message Bus Design - Supports Implicit Message Ordering? - architectureНа меня нападают - что я могу сделать? - .netSpecial characters in email from Oracle pl / sql - oracleDeleting a crash page while executing jQuery - javascriptAll Articles