Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Display
Layout
Split
Unified
Real-time editor
Hide whitespace changes
Hide unchanged lines
Disable line wrap
Diff precision
Smart
Syntax
None
Change appearance
Process
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
5 months ago
Diff never expires
Clear
Export
Share
The two texts are identical
There is no difference to show between these two texts
0 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
9 lines
Copy
0 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
9 lines
Copy
def calculate_user_discount(user: User, order: Order) -> Decimal:
def calculate_user_discount(user: User, order: Order) -> Decimal:
if user.is_premium and order.total > 1000:
if user.is_premium and order.total > 1000:
return order.total * Decimal('0.15')
return order.total * Decimal('0.15')
elif user.is_premium:
elif user.is_premium:
return order.total * Decimal('0.10')
return order.total * Decimal('0.10')
elif order.total > 1000:
elif order.total > 1000:
return order.total * Decimal('0.05')
return order.total * Decimal('0.05')
else:
else:
return Decimal('0')
return Decimal('0')
Saved diffs
Original text
Open file
def calculate_user_discount(user: User, order: Order) -> Decimal: if user.is_premium and order.total > 1000: return order.total * Decimal('0.15') elif user.is_premium: return order.total * Decimal('0.10') elif order.total > 1000: return order.total * Decimal('0.05') else: return Decimal('0')
Changed text
Open file
def calculate_user_discount(user: User, order: Order) -> Decimal: if user.is_premium and order.total > 1000: return order.total * Decimal('0.15') elif user.is_premium: return order.total * Decimal('0.10') elif order.total > 1000: return order.total * Decimal('0.05') else: return Decimal('0')
Find difference