Answer to Question #34145 in Python for Bill Waters

Question #34145
ans = input('data :')
if ans == 'y':
print(ans)
else: print('n')

this code when run in the python works as expected (if you enter 'y' it prints Y) but if you run the code using as Windows bat file if you enter 'y' it prints n... what is the deal?

Regards Bill
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS