Program Console Vignaankosh.com
Execution Panel
Console is empty.
Convert String to Lowercase is an interactive PYTHON dry run visualizer from the Strings programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.
This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.
# Python program to convert string to lowercase
text = "HELLO WORLD!"
# Method 1: Using built-in lower() method
lowercase1 = text.lower()
# Method 2: Manual conversion using ASCII
lowercase2 = ""
for char in text:
if 'A' <= char <= 'Z':
# Convert to lowercase using ASCII (add 32)
lowercase2 = lowercase2 + chr(ord(char) + 32)
else:
lowercase2 = lowercase2 + char
# Method 3: Using casefold() (more aggressive for Unicode)
lowercase3 = text.casefold()
print("Original:", text)
print("Built-in lower():", lowercase1)
print("Manual conversion:", lowercase2)
print("Casefold():", lowercase3)