From 7d58f4beae3ccb683bab82f989d423989f7ab4ce Mon Sep 17 00:00:00 2001 From: Mohit Arora <32641304+mohitarora3@users.noreply.github.com> Date: Mon, 30 Sep 2019 23:48:32 +0530 Subject: [PATCH] Update hanoi.py --- hanoi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hanoi.py b/hanoi.py index 76999e2..53a4132 100644 --- a/hanoi.py +++ b/hanoi.py @@ -9,9 +9,10 @@ def hanoi(n,source,spare,target): from source to destination target: tower to which the discs needs to be transferred return value: none + ''' - assert n>0 + if n==1: print('Move a disc from ',source,' to ',target) else: