Need help with programming in python for class (beginner level)
Johannes Findeisen
mailman at hanez.org
Fri Nov 29 19:49:03 EST 2013
On Sat, 30 Nov 2013 01:38:36 +0100
Johannes Findeisen wrote:
> On Fri, 29 Nov 2013 16:31:21 -0800 (PST)
> farhanken at 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>"
More information about the Python-list
mailing list