как сделать так, чтобы выводилось 21 а не 22
file = open('testest.txt','r',encoding = 'utf-8')
s = str(file.readline())
if s == 'g':
print(21)
else:
print(22)
в testest.txt g g
file = open('testest.txt','r',encoding = 'utf-8')
s = str(file.readline())
if s == 'g':
print(21)
else:
print(22)
в testest.txt g g