jeudi 23 mai 2019

Art idea generator

Can't print a single item from my list. The items in my list are phrases.

.shuffle()

.split()

print('[%s]' % ', '.join(map(str, mylist)))

def getWord(wordList): wordIndex=random.randint(0,len(wordList)-1) return wordList[wordIndex] print('%s' %(words))

ideas='stack of books, pile of rocks, pine cone' print ('%s' %(ideas))

I expect the output to be "stack of books", "pile of rocks", or "pine cone"




Aucun commentaire:

Enregistrer un commentaire