Characters at odd indexes
Write a Python program to print the characters at odd index positions. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to print the characters at odd index positions. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the consonants in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the vowels in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a string contains a digit. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the characters at even index positions (0, 2, 4, ...). Step-by-step explanation, colour-coded code and real output.
Write a Python program to combine two strings into one. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count how often each character appears in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the length of a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to reverse each word of a string, keeping the word order. Step-by-step explanation, colour-coded code and real output.
Check whether a given string is a palindrome. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the smallest and largest word in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the words that appear in both strings, ignoring punctuation. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.