string.index(value, start, end)
#value - The character to search for.#start (Optional) - Index number to start the search from. Default is 0.#end (Optional) - Index number to end the search at. Default is to the end of the string.
string_name[::step]
#If step is 3, python will print every third character only.
word = 'helipad'
print(word[2:6])
word = 'helipad'
print(word[2:])
word = 'helipad'
print(word[:6])
word = 'helipad'
print(word[:])
word = 'helipad'
print(word[::2])
#python prints every second character
Length of the string - len()
Python
counts
and
returns
the
number
of
characters
in
a
string
using
len()
function.
len(string_variable)
word = 'helipad'
print(len(word))
word = 'helipad'
length = len(word)
print(word[2:length]
#we saved the length of the word using the len() function, then we sliced the word from 2 to 7.
Sign In
You will receive an OTP for verification purposes.
Our Result
Sanatan is our in-house coding prodigy who ranked as a Top 2 finalist in Google’s Code-In competition (now defunct). He’s a great example of how starting early in your coding journey can be so empowering that you can even find yourself tackling challenges at tech giants like Google!
What the world says about Tekie
“While most competing platforms are teaching students block-based programming, Tekie is attempting to teach young students the fundamentals of text-based programming, which is to write actual coding language syntax.”
The founder elaborates, “We came up with the idea of animation because that helps bring imagination to reality. We also wanted to make learning interesting and engaging.”
Parents trust us.
The best learning happens when you are not learning, you are playing and enjoying. For Medha, learning has been a pleasant glide, thanks to a warm and interpersonal method of teaching; it's like she is learning from a friend who knows her! She loves the puzzles and other methods used- both experimental and classic.