Home
»
Python Code Editor
Python Code Editor
RUN
PRACTICE NOW
← Back to Lesson
Python
Code Editor
Python
amount = float(input("Enter bill amount: ")) if amount >= 5000: discount_rate = 20 elif amount >= 2000: discount_rate = 10 else: discount_rate = 5 discount = amount * discount_rate / 100 final_amount = amount - discount print("Discount rate:", discount_rate, "%") print("Discount amount:", discount) print("Final amount:", final_amount)
Output
Run your code to see the result.
Practice
×
Practice
Hint
Variation
Variation Hint
Ready
✦
Ask AiTeluguLo
AiTeluguLo Assistant
Telugu • AI Tools • Tutorials
×
నమస్కారం! AiTeluguLo.comలో ఏమి తెలుసుకోవాలనుకుంటున్నారు?
మీ ప్రశ్న
పంపండి
సమాధానాలు website content ఆధారంగా ఉంటాయి.
Scroll to Top