Python word guessing game def alphabetlist():
    print(&quot;alphabet1 = [a,b,c,d,e,f]&quot;)
    print(&quot;alphabet2 = [g,h,i,j,k,l]&quot;) 
    print(&quot;alphabet3 = [m,n,o,p,q,r]&quot;) 
    print(&quot;alphabet4 = [s,t,u,v,w,x]&quot;)
    print(&quot;alphabet5 = [y,z]&quot;)
print(&quot;Guess a word.&quot;)
print(&quot;Now i will try to figure out the word you guessed.&quot;)
totalletters=int(input(&quot;total number of letters in your guessed words are: &quot;))
def chooselist(x):
    if x == 1:
        print(alphabet1)
    elif x == 2:
        print(alphabet2)
    elif x == 3:
        print(alphabet3)
    elif x == 4:
        print(alphabet4)
    elif x == 5:
        print(alphabet5)
list=[ ]
def listtranspose(w):
    if w == 1:
        i=int(input());list.append(alphabet1[i-1])
    elif w == 2:
        i=int(input());list.append(alphabet2[i-1])
    elif w == 3:
        i=int(input());list.append(alphabet3[i-1])
    elif w == 4:
        i=int(input());list.append(alphabet4[i-1])
    elif w == 5:
        i=int(input());list.append(alphabet5[i-1]) 
alphabetlist()
alphabet1 = [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;d&quot;,&quot;e&quot;,&quot;f&quot;]
alphabet2 = [&quot;g&quot;,&quot;h&quot;,&quot;i&quot;,&quot;j&quot;,&quot;k&quot;,&quot;l&quot;] 
alphabet3 = [&quot;m&quot;,&quot;n&quot;,&quot;o&quot;,&quot;p&quot;,&quot;q&quot;,&quot;r&quot;] 
alphabet4 = [&quot;s&quot;,&quot;t&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;x&quot;]
alphabet5 = [&quot;y&quot;,&quot;z&quot;]
step_1=[ ];h=0
while totalletters&gt;h:
    print(&quot;your letter is from which list 1,2,3,4,5&quot;)
    x = int(input())
    step_1.append(x);h+=1
print(&quot;***\n  1    2    3    4    5    6   &quot;)
g=0
while totalletters&gt;g:
    chooselist(step_1[g]);g+=1
print(&quot;*******&quot;);e=0
while totalletters&gt;e:
    print(&quot;choose from these lists again now 1,2,3,4,5,6&quot;)
    listtranspose(step_1[e]);e+=1
print(&quot;the word you guessed is: &quot;,end=&quot; &quot;)
for i in range(0,len(list),1):
print(list[i],end=&quot;&quot;)

This program is a word guessing game. The user thinks of a word and this program guesses it. through a series of list I want to know if there are other ways to write this, more easily actually I get all the functions used but not the next part
I don't know what you mean by &quot;more easily&quot;, but here are some comments on the code:
No error handling
In many statements like i=int(input());list.append(alphabet1[i-1]) you use user input directly to index a list, without checking if it is in range, or even if it is a number.
One wrong keystroke from the user and the whole program crashes.
Mixed code
You mix main script code with function definitions, making it harder to follow your program flow by hand, thus making your program harder to understand.
You should have your main program code follow all the functions in one coherent block, and it is even better to wrap it in its own main function, then use a construct like this:
if __name__ == '__main__':
    main()

Repetitive code
In both listtranspose and chooselist you write the same line 5 times over, just because you used separate variables for 5 (almost) identical lists instead of a list of lists.
Naming
Do not use list as a variable name! It is a Python builtin for creating new lists, and while Python is nice enough to allow you to overwrite it, this can both break future code and make your code harder to understand by others.
There are seemingly random one letter variables in your code h, g, e, it is hard to understand what they do.
Please give them more meaningful names.
Function alphabetlist actually prints the lists, so it would be better to name it print_lists or similar.
Also, there is no reason to hardcode the lists you print, since they already exists as list type variables.