Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:01:19+00:00 2026-06-17T11:01:19+00:00

When I run this in my program, the question goes through, however no matter

  • 0

When I run this in my program, the question goes through, however no matter the answer, the "No" option always runs. If I switch the option order, the "Y" option will only run and it will always go straight to start. I’m sure I’m missing something simple, I just don’t know what.

infoconf = raw_input("Is this information correct? Y/N: ")
    
    if infoconf == "N" or "No":
        print "Please try again."
    elif infoconf == "Y" or "Yes":
        start()
    else:
        print "That is not a yes or no answer, please try again."
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:01:20+00:00Added an answer on June 17, 2026 at 11:01 am

    Supposed to be

    infoconf = raw_input("Is this information correct? Y/N: ")
    
    #you wrote:  infoconf == "N" or "No" but should be:
    if infoconf == "N" or infoconf == "No": 
      print "Please try again."
    #you wrote: infoconf == "Y" or "Yes" but should be
    elif infoconf == "Y" or infoconf == "Yes": 
      start()
    else:
      print "That is not a yes or no answer, please try again."
    

    Short explanation:

    when value of x = 'N'
    x == 'N' or 'No' will return True
    when value of x = 'Y'
    x == 'N' or 'No' will return 'No' i believe this is not what you want
    

    at the other side

    when value of x = 'N'
    x == 'N' or x == 'No' will return True
    when value of x = 'Y'
    x == 'N' or x == 'No' will return False i believe this is what you want
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when I run this program, it print NameError global name 'viewAll' is not defined
I have run this program before and it worked fine. Then I added the
When I run this program, I enter the username as dcole and the password
I have written php program and uploaded on server. I want run this program
Window.Content = Chandru + Guna + Kalai; when i run this program the result
This program I use has it's own variables to set when you run it,
I need to run this line from my c++ program: java -jar test.jar text1
I want to know how to check whether is program running and run this
Is there a program which I can run like this: py2py.py < orig.py >
I've run into this while writing a Traveling Salesman program. For an inner loop,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.