Palindromic game in Python
Instead of saving len(total), just use:

if len(total) &gt; 58:
     print("\nHolly Shit!!! You broke my record!!! with %d." % (length))

elif len(total) == 58:
    print("\nWow, Nice!!! 58 is my highest Palindromic number (too).\nThat's a draw") 
    # Since you hardcoded your -highscore-, there's no need to use a variable to print the highscore.


Use whitespace more efficiently, especially in your palindrome() function.
Instead of converting n to str() in your palindrome() function, use numbers.append(str(x)). This way you can reuse palindrome() and have it take n as a string by default (or use an assertion / try: except: statement).

Rewritten:

from random import randint

numbers = []
palindromes = []
dice = randint(1000, 50000)

while len(numbers) &lt; dice:
    x = randint(100000, 1000000)
    numbers.append(str(x))


def palindrome(n):
    for i in n[::-1]:
        if i == i[::-1]:
            palindromes.append(i)
    return palindromes


palindromes = palindrome(numbers)
print(palindromes) # To check this works

if len(palindromes) &gt; 58:
    print("\nHoly shit! You broke my record with %d!\n" % (length))

elif len(palindromes) == 58:
    print("\nWow, nice! 58 is my highest palindromic number too!\n")