My issue
b = 23
r = 45
if r > b:
print(“Rob scored higher marks than Bob”)
elif r==b:
print(“Bob & Rob scored the same”)
b = 15
r = 15
if r > b:
print(“Rob scored higher marks than Bob”)
elif r == b:
print(“Bob & Rob scored the same”)
Output
Rob scored higher marks than Bob
Bob & Rob scored the same
Status:
Wrong Answer
My code
b = 23
r = 45
if r > b:
print("Rob scored higher marks than Bob")
elif r==b:
print("Bob & Rob scored the same")
b = 15
r = 15
if r > b:
print("Rob scored higher marks than Bob")
elif r == b:
print("Bob & Rob scored the same")
Learning course: Learn Python
Problem Link: https://www.codechef.com/learn/LTCPY12/problems/PYTH66