From 24a2731a3241cc299debf21c4eded52fd0ed7767 Mon Sep 17 00:00:00 2001 From: BhupaliRane <47566554+BhupaliRane@users.noreply.github.com> Date: Sun, 24 Feb 2019 17:41:24 +0530 Subject: [PATCH] Done --- Part-1-Functions | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Part-1-Functions b/Part-1-Functions index df3f09d..cdc4d29 100644 --- a/Part-1-Functions +++ b/Part-1-Functions @@ -21,7 +21,13 @@ # arrayCheck([1, 1, 2, 1, 2, 3]) → True def arrayCheck(nums): - # CODE GOES HERE + num=[1,3,5,7] + for i in num: + if(num[i]==1 and num[i+1]==2 and num[i+2]==3): + print("True") + else: + print("False") + ##################### @@ -38,7 +44,11 @@ def arrayCheck(nums): # stringBits('Heeololeo') → 'Hello' def stringBits(str): - # CODE GOES HERE + l=len(str) + print(str) + print(str(0:l:2)) + + #####################