Strings in Python. Prepare for Coding Interview. Programming Interview Questions and Answers. Mastering the Coding Interview With Examples From Python – Part 3
In this lecture we Will Review Strings using Python Language.
Discussion about Clarifying questions is there as well. We will Practice Problems for String in Jupyter notebook using Python Language. Sample Coding Interview Question about Strings is Discussed and Visual and Programming Solution is Given at the End.
You can Watch Full Playlist Here:
-~-~~-~~~-~~-~-
Please watch: “How to Calculate Age from Date of Birth in Excel in Years Months and Days (Simple Formula)”
-~-~~-~~~-~~-~-
source
I dont see ant document to use in jupyter.
This was helpful, thanks!
May i know why for the string 'ab-c', string pooling optimization not happens?
similarly, why
'a' * 20 is 'aaaaaaaaaaaaaaaaaaaa' # results True
'a' * 21 is 'aaaaaaaaaaaaaaaaaaaaa' # results False
and why?
a=270
b=270
a is b # False
For any strings containing only alphanumeric characters a is b returns True.
But if i add any other symbol, it returns False. for example:
>>> a='ab-c'
>>> b='ab-c'
>>> a is b
False
>>> a='1ab'
>>> b='1ab'
>>> a is b
True
>>>
I also tried
from sys import intern
a=intern('ab-c')
b=intern('ab-c')
a is b #True
May i know why it is happening? May i know what is this intern?
Very good video and its quite Really a great information provided here a such a good innovative ideas. here is our PYTHON INTERVIEW QUESTIONS LINK BELOW .
https://bit.ly/2kjY0Dg
Problem 5: return ''.join(list(string_1)[::-1]) == string_2
hello, I guess comparing length of strings does not work for a = "000" and b = " 1" which should be False but in your approach this will be True.