Hi guys Im working on a simple python script. This is what i have
what i want to do is get an integer for the line weight and use it as the line_weight argument in the function fishing. How would i do that? THe way I have it isnt working......
def fishing(bait, line_weight, pole_size):
print "You really want to go fishing dont you?"
print "The water is perfect for the %s bait you want to use" % bait
print "Don't want to use too heavy or too light line here. %d lb test weight might be too light. Its a bit choppy. lets add 10 lbs to that and go with %d lb test" % (line_weight, line_weight + 10)
print "Now to match the pole to the line weight and the lure. The %s pole size that you specified shows that you are a master fisherman." % pole_size
print "You are the man! The %s combined with %d and the %s pole size are the combo of the masters! Now, get to work!" % (bait, line_weight + 10, pole_size)
fishing("bloodworms", 30, "medium")
print "Now to actually accept user input and return the same string"
print "Which type of bait are you using today?"
bait1 = raw_input("bait type>")
print "How about the line weight in lb?"
line_weight1 = raw_input("line weight>")
int lineweight = line_weight1
print "Ok, Got it. Now for the pole, sir?"
pole_size1 = raw_input("pole size>")
fishing(bait1, lineweight, pole_size1)