47865/print-the-random-list-s-item-index-number-in-python
Hey @Alia, you can use a python function called random.randrange()
from random import randrange random_index = randrange(len(list)) print(list[random_index])
x = int(input("Enter any number \n")) print("The factors ...READ MORE
To count the number of appearances: from collections ...READ MORE
You probably want to use np.ravel_multi_index: [code] import numpy ...READ MORE
You can use word.find('o') as well to ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
The seed method is used to initialize the ...READ MORE
Hi, the answer is a very simple ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.