How do i shuffle a single word? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i shuffle a single word?

Ive imported the random shuffle but i cant use it to shuffle a word from a list

9th Nov 2018, 11:11 AM
Tona Davis Jr.
Tona Davis Jr. - avatar
4 Answers
+ 1
Where is the code??
9th Nov 2018, 11:14 AM
Amir Galanty
Amir Galanty - avatar
9th Nov 2018, 11:19 AM
Tona Davis Jr.
Tona Davis Jr. - avatar
0
Line 7 is where im confused
9th Nov 2018, 11:20 AM
Tona Davis Jr.
Tona Davis Jr. - avatar
0
I have changed your 'lines' into a list of strings at it works. Have you checked if the file gets opened and split properly?
9th Nov 2018, 11:33 AM
HonFu
HonFu - avatar