First repeated character and its index
Write a Python program to find the first character that repeats and the index of its first...
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 find the first character that repeats and the index of its first...
Write a Python program to print the index of each character in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to reverse the order of words. Step-by-step explanation, colour-coded code and real output.
Write a Python program to add "ly" if a string ends with "ing", otherwise add "ing". Step-by-step explanation, colour-coded code and real output.
Write a Python program to add "ing" at the end of a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a string contains only 0 and 1. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove the character at index k. Step-by-step explanation, colour-coded code and real output.
Write a Python program to accept a string only if it contains vowels only. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the length of a string, not counting spaces. Step-by-step explanation, colour-coded code and real output.
Write a Python program to list all permutations of a string with a built-in function. Step-by-step explanation, colour-coded code and real output.
Write a Python program to split a string and join it with "-". Step-by-step explanation, colour-coded code and real output.
Write a Python program to insert a space before every capital letter. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.