Program Console Vignaankosh.com
Execution Panel
Console is empty.
Concatenate Strings 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 concatenate strings
str1 = "Hello "
str2 = "World!"
# Method 1: Using + operator
result1 = str1 + str2
# Method 2: Using join() method
result2 = "".join([str1, str2])
# Method 3: Using f-string
result3 = f"{str1}{str2}"
# Method 4: Using format()
result4 = "{}{}".format(str1, str2)
print("Method 1 (+ operator):", result1)
print("Method 2 (join):", result2)
print("Method 3 (f-string):", result3)
print("Method 4 (format):", result4)