Just a simple guessing game
There are few improvements you can do:


Remove the first sec_no = random.randint(0, 10). You are already initializing it inside of the main while loop.
Create a variable that contains minp.lower(). Instead of calculating it over and over - keep it in a variable and avoid code duplication.
Get rid of ncout or att. They are practically saving the same thing, keep only att and change the while and if condition to att &gt; 0.
Add some comments - File comments and function comments.
General python tip: do not write code in main, Use functions. Function for each case, function for main loop, function to check if string is int and the __main__ should look like this:


if __name__ == '__main__':
    main_function()


Except for that - good logic, nice code :)