import random
deck=range(1,11)*4 # create list of numbers 1 to 10 each represented 4 times
random.shuffle(deck)
print 'Practice session only'
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.'
pick2=3 # for example
pick2=input('Enter your secret number between 1 and 10 ')
yourSecret=pick2
t2=pick2
print 'Your current secret number is ',pick2
print 'Press Enter to see next card, switching your number where appropriate'
p=0
c=0 # for counting forward
for j in deck:
p+=1
c+=1
print '+',c,' card',j,
z=raw_input()
if p==t2:
t2+=j
yourSecret=j
print 'you switch to',yourSecret
c=0
print 'So your present secret number is',yourSecret