From 37dd0aa3d51acf526781f29e5e38c348aadd881c Mon Sep 17 00:00:00 2001 From: vdnvsivakumar <49924550+vdnvsivakumar@users.noreply.github.com> Date: Sun, 13 Sep 2020 03:28:39 +0530 Subject: [PATCH] Update assignment_04.py --- Section_01/assignment_04.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Section_01/assignment_04.py b/Section_01/assignment_04.py index 956262e..7caa8c1 100644 --- a/Section_01/assignment_04.py +++ b/Section_01/assignment_04.py @@ -19,10 +19,14 @@ # Expected Result Printed: omputerTuck # Your code below: - - - - +lst =(word1,word2) +c=0 +result = '' +for x in lst: + w=x[:c]+x[c+1:]+' ' + result += w + c += 1 +print(result)