On Sat, 30 Nov 2013 01:38:36 +0100 Johannes Findeisen wrote: > On Fri, 29 Nov 2013 16:31:21 -0800 (PST) > farhan...@gmail.com wrote: > > > print "<p>The total rolled was: "number" </p>" > > The above line is wrong. You did it right below: > > > print "<p>Thanks for playing, " + name + ".</p>" > > print "<p>You bet the total would be at least " + value + ".</p>" > > Do this: > > print "<p>The total rolled was: " + number + " </p>"
Sorry, that was wrong! You need to convert to a string when concatenating... print "<p>The total rolled was: " + str(number) + " </p>" -- https://mail.python.org/mailman/listinfo/python-list