From e10637c366283642aa1edac5e72183a37ed00b13 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 20 Feb 2012 16:34:17 +1300 Subject: [PATCH] Tidied up plugins/coin.py --- plugins/coin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/coin.py b/plugins/coin.py index e24efd2..32e0199 100644 --- a/plugins/coin.py +++ b/plugins/coin.py @@ -1,8 +1,8 @@ -# # Lukeroge +# Created by Lukeroge, improved by TheNoodle from util import hook import random -# used for tals: x heads: y +# used for tails: x heads: y def flip_simple(count): heads = 0 tails = 0 @@ -40,5 +40,5 @@ def coin(inp): return "You flip a coin and get "+sidename+"." else: flips = flip_simple(count) - return "You flip "+str(count)+" coins and get " +str(flips[0])+" heads and "+str(flips[1])+" tails." + return "You flip %s coins and get %s heads and %s tails." % (str(count), str(flips[0]), str(flips[0]))