import random
import time
deck=range(1,11)*4 # create list of numbers 1 to 10 each represented 4 times
random.shuffle(deck)
pick1=4 # computer's arbitrary pick
PCguess=pick1
t=pick1
print 'Write down a secret number, n, between 1 and 10.'
print 'You are going to count until n cards have been dealt.'
print 'The card then showing will give you a new secret number to count up to.'
z=raw_input('Press Enter to see cards dealt one per second:')
p=0
c=0 # for counting forward
for j in deck:
p+=1
c+=1
print 'card',j
if p==t:
t+=j
PCguess=j
if p+PCguess>40:
break
time.sleep(1)
print 'Computer says your present secret number is',PCguess