Skip to content

Conversation

@Rocish
Copy link

@Rocish Rocish commented Feb 12, 2019

sorry

Copy link
Owner

@Tushar-OP Tushar-OP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some Errors Correct them and try again!



endwith(str1,str2)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This checks only if the the string 1 ends with string 2, What if the str 1 is abc and string 2 is abXabc?

@@ -47,6 +47,9 @@ def arrayCheck(nums):
# stringBits('Heeololeo') → 'Hello'

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct

Part-1-Functions Outdated
c = c + char*2
return print(c)

double(str)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call doubleChar! not double atleast run before pulling

return print(c)

double(str)
# CODE GOES HERE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dude stop using keyword 'str' its an inbuilt keyword, excluding this changes the function is correct

Part-1-Functions Outdated
count=count+1
else:
i=i+1
print(count)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need of i=i+1 just do count no need of else as we have to count only even numbers!

return print(str[::2])

stringBits(str)
# CODE GOES HERE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants