Skip to main content
Ask a Question
Asked a question last year

why does it gives wrong output? a=int(input()) if a>90 or a<=100: print("|-----|") print("| A |") print("|-----|") elif a>80 or a<=90: print("|-----|") print("| B |") print("|-----|") elif a>70 or a<=80: print("|-----|") print("| C |") print("|-----|") elif a>60 or a<=70: print("|-----|") print("|--D--|") print("|-----|") elif a>50 or a<=60: print("|-----|") print("|--E--|") print("|-----|") else: print("|-----|") print("| FAIL|") print("|-----|")

Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now