Check Profit Condition Dry Run in PYTHON

Check Profit Condition is an interactive PYTHON dry run visualizer from the If 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.

Check Profit Condition Program Code

cp = float(input("Enter Cost Price: "))
sp = float(input("Enter Selling Price: "))

if sp > cp:
    print("Profit")
else:
    print("No Profit")

View the complete If programs page.

Program Console Check Profit Condition Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.