Apr-16-2020, 09:26 PM
Hello I not very good with python i still learn. I use Python 3 on trinket (website) because our school we only have chromebooks. I have had this issue many times and i do not know how to fix. basicly if the input is yes, Yes, Y or y it should print yes and if the input is No, no, N or n it should print no, but it alway print yes. i dont know to fix. Here is code.
print("Woldpack TDC Assist \n") print("Range To Target") mast_height=float(input("Mast height")) lines_amount=float(input("Lines amount")) zoom=input("Are you zoomed in?") if zoom=="Yes" or "yes" or "Y" or "y": print("yes") elif zoom=="No" or "no" or "N" or "n": print("No")