My issue
My code
dice1 = int(input("Enter the first number:"))
dice2 = int(input("Enter the second number:"))
addition = dice1 + dice2
if addition >= 6:
print("Good turn")
else:
print("Not good turn")
Problem Link: GDTURN Problem - CodeChef
you have to put whole code in test case loop
@karthik_189
You can also refer to the following link to see where your code went wrong.
GDTURN
Your logic’s perfect only the out wrapping with the test case layout was missing and the below code of mine will make you understand and clear you program.
for test_case in range(test_cases):
dice1 = int(input("Enter the first number:"))
dice2 = int(input("Enter the second number:"))
addition = dice1 + dice2
if addition >= 6:
print("Good turn")
else:
print("Not good turn")