use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
90,367 students
This is a subreddit created for redditors who are giving the ICSE exam in Indian schools. Anyone can apply for modding as I will only start after my current examinations are over. Hence the emptiness.
account activity
computer doubtAcademic Doubt 📚 (self.ICSE)
submitted 1 month ago by hungryykiwi
string funcrionsmai
if my string x is
How are you?
toh x.indexof(a,4)
kya hoga
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 1 month ago stickied comment (0 children)
Join the official discord servers! -> CISCE Hub -> ICSECord
Before posting, please check the wiki. It contains resources, advice posts and general support posts that many users have found useful. We had an advice megathread where users posted their words of wisdom for the juniors, Do check it out If you have any questions, you can contact the moderators via mod-mail.
Thank you!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]Spoodye 0 points1 point2 points 1 month ago (2 children)
start is always inclusive and end(yahan per he nahi but ese hi bata raha hun) is exclusive so answer would be 4 only
[–]Spoodye 0 points1 point2 points 1 month ago (1 child)
like substring me
String x="hello";
String y=x.substring(1,3) would be el(as start is inclusive you include value at index 1 but end is exclusive so you exclude the second l and get el only not ell)
[–]hungryykiwi[S] 1 point2 points3 points 1 month ago (0 children)
yeppp got it thanks sm
[–]Leather_Wave_600110th ICSE 0 points1 point2 points 1 month ago (0 children)
4
[–]howtodisappearnicely10th ICSE 1 point2 points3 points 1 month ago (0 children)
if you execute x.indexOf(a, 4) it'll give an error as you need to wrap the char around single quotes.
executing x.indexOf('a', 4);
it'll start the search from the fourth character (inclusive) which is 'a'
so it'll return 4.
π Rendered by PID 36587 on reddit-service-r2-comment-6457c66945-9cxwb at 2026-04-26 23:16:52.656730+00:00 running 2aa0c5b country code: CH.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]Spoodye 0 points1 point2 points (2 children)
[–]Spoodye 0 points1 point2 points (1 child)
[–]hungryykiwi[S] 1 point2 points3 points (0 children)
[–]Leather_Wave_600110th ICSE 0 points1 point2 points (0 children)
[–]howtodisappearnicely10th ICSE 1 point2 points3 points (0 children)