HOW DO I SHUFFLE THE INDEX LIST? with this code and the variable list
#turns string to list
list=[]
#gets the sentence to count and what to count and deletes punctuation
punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
sentence=input("Enter sentence to count: ")
sentence=sentence.lower()
no_punct = ""
for char in sentence:
if char not in punctuations:
no_punct = no_punct + char
list=no_punct.split()
#this shows whether it is there or not
index=[index+1 for index,list in enumerate(list)]
print("the indices are ",index)