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

Why does this code throw an error? 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<=50: print("|-----|") print("|--D--|") print("|-----|") else a<50: print("|-----|") print("|-FAIL-|") print("|-----|")

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