Question: 1. Write a python program that appends numbers 1 to 50 to a list using a loop. Print the sum of the list and find

1. Write a python program that appends numbers 1 to 50 to a list using a loop. Print the sum of the list and find the maximum and minimum number of the list.

2. Write a program in python to reproduce the table of p and q. (hint: Start with two lists p and q and iterate over the lists to produce the final column)

Sample Output:

p q p and q

True True True

True False False

False True False

False False False

3. Consider the conditional proposition p q. It was shown in the lecture that this proposition is logically equivalent to p q. Use python to construct the truth table of p q. Make sure it agrees with the truth table of p q

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!