My issue
whats wrong with this code
My code
y=float(input())
if 0<x<7 and 0<y<7 and x+y>6:
print('yes')
else:
print('no')
# cook your code here
Problem Link: GDTURN Problem - CodeChef
whats wrong with this code
y=float(input())
if 0<x<7 and 0<y<7 and x+y>6:
print('yes')
else:
print('no')
# cook your code here
Problem Link: GDTURN Problem - CodeChef
use while/for loop before code
refer below code
# Read the number of test cases
T = int(input())
# Iterate through each test case
for _ in range(T):
# Read X and Y for each test case
X, Y = map(int, input().split())
# Check if the sum is greater than 6
if X + Y > 6:
print("YES")
else:
print("NO")