Count uppercase, lowercase, digits and specials
Write a Python program to count the uppercase, lowercase, special and numeric characters in a...
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 count the uppercase, lowercase, special and numeric characters in a...
Write a Python program to remove all characters except a given one. Step-by-step explanation, colour-coded code and real output.
Write a Python program to build a string from the characters that appear in only one of two...
Write a Python program to build a string of the characters that occur more than once. Step-by-step explanation, colour-coded code and real output.
Write a Python program to collapse consecutive duplicate characters into one. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the longest run of consecutive 0s in a binary string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove leading zeros from each part of an IP address. Step-by-step explanation, colour-coded code and real output.
Write a Python program to add up the digits in a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to capitalise the first and last letters of each word. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove all spaces from a string. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the second most repeated word. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the first word that repeats. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.