Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python. I wrote this but I messed up by having enter proposition1 and proposition2 correct? it has to be like the output on the instructions.

python. I wrote this but I messed up by having enter proposition1 and proposition2 correct? it has to be like the output on the instructions. can you edit my code/ give feedback.

image text in transcribed

image text in transcribed

4 def moreprop(proptablel, proptable2): proptablel TruthTable(I'p','q'], [prop1]) ifprptable1.table proptable2.table); print "The proposition is consistent." print "The proposition is not consistent." 18 19 20 Y#None np1= raunput("Enter proposition 1: ") prop 2s rajnput("Enter proposition 2: ") 22 more - raw input("Hould you like to enter more (Y/N): ") 25 26 pron ral.input("Enter proposition 1: ") prop2 raw input("Enter proposition 2: ") Write a Python program that asks the user to enter a system description as a series of propositions Determine whether or not the description is consistent and print a message to that effect. Your user experience should be along the lines of the following: Enter a proposition: p andq Would you like to enter more (Y/N):Y Enter a proposition: p - q Would you like to enter more (Y/N): N Your description is consistent. Save your program in a file and upload it under the appropriate Cat Courses assignment page

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

understand the meaning of the terms discipline and grievance

Answered: 1 week ago