GithubHelp home page GithubHelp logo

jewelryproject's People

Contributors

kibautista avatar

Watchers

 avatar

jewelryproject's Issues

Need help: code for yes / no quiz

Hi!

I'm very new to writing code. I was trying to write a simple quiz that consists of "yes" and "no" that would end up in a result of a material name + description.

However, I keep having issues having all of the combinations work. I should probably be using a different function, but I just don't know which one.

(Please don't laugh too hard at my first attempt!)

Could you please help?

Thanks so much!

Code:

question = input (" \n Welcome! \n \n To determine a bead, stone, or cab material, \n type in answers to the following questions: \n \n Is it cold to touch? \n Yes or No?")
if question == "yes" or " yes" :
question2 = input (" \n Does it make a high pitched sound when tapped? \n Yes or No?")
if question2 == "yes" or " yes":
question3 = input (" \n Is it transluscent? \n Yes or No?")
if question3 == "yes" or " yes":
question5 = input (" \n Does it shine like a rainbow? \n Yes or No?")
if question5 == "yes" or "yes":
outcome2 = input (" \n This may be CZ. \n CZ will always be in a setting where the back is open, in order for light to shine through. \n Check references for CZ. \n If the stone is in a closed-back setting, \n this may be glass.")
if question5 == "no" or " no":
outcome4 = input (" \n This may be glass. \n Compare to glass references. \n Glass will be cool to touch, and make a sharp sound when tapped. \n Stones will usually be in a closed-back setting. \n There is no seam or gate on glass stones or beads.")
if question3 == "no" or " no":
outcome1 = input (" \n This may be semiprecious. \n Check references for semiprecious stones. \n If you do not think this is semiprecious, re-assess answers, get a second opinion, and try again.")
if question5 == "yes" or "yes":
outcome2 = input (" \n This may be CZ. \n CZ will always be in a setting where the back is open, in order for light to shine through. \n Check references for CZ. \n If the stone is in a closed-back setting, \n this may be glass.")
if question5 == "no" or " no":
outcome4 = input (" \n This may be glass. \n Compare to glass references. \n Glass will be cool to touch, and make a sharp sound when tapped. \n Stones will usually be in a closed-back setting. \n There is no seam or gate on glass stones or beads.")
if question5 == "yes" or " yes":
outcome2 = input (" \n This may be CZ. \n CZ will always be in a setting where the back is open, in order for light to shine through. \n Check references for CZ. \n If the stone is in a closed")
if question2 == "no" or " no":
question6 = input (" \n Does it have a seam or gate? \n *Tip-A gate is a small hole on the side of the bead or stone. \n Yes or No?")
if question6 == "yes" or " yes":
outcome3 = input ("\n This may be acrylic. \n Acrylic is dull in shine, and will have \n a gate or seam on the edge. \n If the component is warm \n and dull when tapped, but does not \n contain a seam or gate, \n then it may be Resin. \n For more information on 'Resin' enter 'more'")
if outcome3 == "more" or " more":
more1 = input (" \n Resin is still a plastic-based material, \n but the quality is better than acrylic \n because the process is different. \n Resin stones or beads are individually injected \n into a mold, which is why there is no gate or seam. \n Acrylic is mass produced, multiple components at once \n created into a sheet which is then broken apart, hence the appearance of a gate or seam.")
if question2 == "yes" or " yes":
outcome4 = input (" \n This may be glass. \n Compare to glass references. \n Glass will be cool to touch, and make a sharp sound when tapped. \n Stones will usually be in a closed-back setting. \n There is no seam or gate on glass stones or beads.")
question3 = input (" \n Is it transluscent? \n Yes or No?")
if question3 == "yes" or " yes":
question5 = input (" \n Does it shine like a rainbow? \n Yes or No?")
if question5 == "yes" or " yes":
outcome2 = input (" \n This may be CZ. \n CZ will always be in a setting where the back is open, in order for light to shine through. \n Check references for CZ. \n If the stone is in a closed-back setting, \n this may be glass.")
if question5 == "no" or " no":
outcome4 = input (" \n This may be glass. \n Compare to glass references. \n Glass will be cool to touch, and make a sharp sound when tapped. \n Stones will usually be in a closed-back setting. \n There is no seam or gate on glass stones or beads.")
if question3 == "no" or " no":
outcome1 = input (" \n This may be semiprecious. \n Check references for semiprecious stones. \n If you do not think this is semiprecious, re-assess answers, get a second opinion, and try again.")
if question == "no" or " no":
question4 = input (" \n Is the bead warm to touch? Yes or No?")
if question4 == "yes" or " yes":
question6 = input (" \n Does it have a seam or gate? *Tip-A gate is a small hole on the side of the bead or stone. Yes or No?")
if question6 == "yes" or " yes":
outcome3 = input ("\n This may be acrylic. \n Acrylic is dull in shine, and will have \n a gate or seam on the edge. \n If the component is warm \n and dull when tapped, but does not \n contain a seam or gate, \n then it may be Resin. \n For more information on 'Resin' enter 'more.'")
if outcome3 == "more" or " more":
more1 = input (" \n Resin is still a plastic-based material, \n but the quality is better than acrylic \n because the process is different. \n Resin stones or beads are individually injected \n into a mold, which is why there is no gate or seam. \n Acrylic is mass produced, multiple components at once \n created into a sheet which is then broken apart, hence the appearance of a gate or seam.")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.