Kent Johnson schrieb:
> David wrote:
>> print “Hit heads”+” “+str(heads)+” “+”times”+” “ + “hit tails” + “ 
>> “+str(100-heads)+” “ + “times”
> 
> This sounds a lot like homework [...]

An if you want to get extra marks for pythonicity  ;-), read about string
formatting here:

http://www.python.org/doc/current/lib/typesseq-strings.html

Chris
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to