I'm relatively new to programming.
I've been attempting to write and run my first program and i'm getting stuck with an error. I attempted removing the int(raw_input()) on line 22 a few times and make a few other adjustment's however my skill isn't quite all there to solve this myself.
1 Premains = 10 #Remaining points assigned before functions
2
3 #Function designed to see user's overall stats and remaining points
4
5 def print_skills():
6
7 print "Dexterity:" + dex
8 print "Strength:" + str
9 print "IntelligenceL:" + int
10 print "\nYou have %d remaining" % Premain
11
12 #Function called when user selects to edit Dexterity attribute
13
14 def dex_skill():
15 Dpoints = 0
16 print "Great you choose Dexterity!"
17 answer = raw_input("would you like to add or subtract points?\n > ")
18
19 if answer == "add":
20 print "You have: %d points remaining!" % Premains
21
22 numb =(int(raw_input("How many points would you like to add?\n > ")
23
24 Premains = (numb - Premains)
25 Dpoints = numb + Dpoints
26
27 print "Great! you now have: %d Dexterity points!"
28
29 else:
30 print "You choose subtract."
31 #Subtract code goes here. Similiar to above.
32 dex_skill()
~
This returns with the error
File "try.py", line 24
Premains = (numb - Premains)
^
SyntaxError: invalid syntax
