+ 4
When you get to "Functions & Modules" chapter, you'll find an example in lesson 37.1 titled "Modules" https://www.sololearn.com/learn/Python/2438/?ref=app
5th Oct 2022, 10:02 AM
Ipang
+ 3
You need the list, then a random number that is limited by the size of the list and then the output of the item from the list.
5th Oct 2022, 9:56 AM
Ausgrindtube
Ausgrindtube - avatar
0
import random lo = [1,2,3,4,5,6,7] print (random.choice(lo)) Here is an example 👆🏾
6th Oct 2022, 8:32 PM
Udodor Eguono Christabel
Udodor Eguono Christabel - avatar