Permutations of a string
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.
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 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.
Write a Python program to convert the second half of a string to uppercase. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the leap years in a range given as a string like "1981-2001". Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract the name part of an email address (without trailing digits). Step-by-step explanation, colour-coded code and real output.
Write a Python program to add two strings as numbers and return a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to split a multi-line string into a list of lines. Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract the numbers from a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to measure how similar two strings are. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove unwanted characters from a string and capitalise it. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the non-empty substrings of a string. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.