-
Notifications
You must be signed in to change notification settings - Fork 7
trying pull request #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Tushar-OP
left a comment
There was a problem hiding this 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) | ||
|
|
There was a problem hiding this comment.
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' | |||
|
|
|||
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct
sorry