first, second, third, last =(input("test ")).split()
print("{0:s}{1:s}{2:s}{3:s}".format(last, third, second, first)))
User_guess=[0,0,0,0]
print(first)
User_guess.append[0]=first
first, second, third, last =(input("test ")).split()
print("{0:s}{1:s}{2:s}{3:s}".format(last, third, second, first)))
User_guess=[0,0,0,0]
print(first)
User_guess.append[0]=first
User_guess.append[0]=first
. . . (i am VERY tired and have no idea what to fix) . . fYi, the variable User_guess links to a diffenrent part of the code that is affected by this. BUT the other part does NOT effect this.
User_guess
is already a list of 4 elements so no need to use append()
. Use User_guess[0]=first
to store the variable first
into 0'th element of User_guess
list.