Question: Please respond in Python, thanks! Q2. (15 points) Write a short program prompts for two strings and then compares them, printing the smaller string. Sample

Please respond in Python, thanks! Q2. (15 points) Write a short programprompts for two strings and then compares them, printing the smaller string.Sample Output: Enter a string: This is a sample sentence. Enter anotherstring: This is another sentence. This is another sentence. is the smallerstring. Q3. (20 points) Write a program that returns True if thePlease respond in Python, thanks!

Q2. (15 points) Write a short program prompts for two strings and then compares them, printing the smaller string. Sample Output: Enter a string: This is a sample sentence. Enter another string: This is another sentence. This is another sentence. is the smaller string. Q3. (20 points) Write a program that returns True if the sentence string sentence_str contains every letter of the alphabet. If the sentence does not contain each letter, print which ones are missing. The results should not depend on capitalization. Sample Output: Input a string: This is a test string. String is missing: b, c, d, f, j, k, l, m, o, p, q, u, v, w, x, y, z Input a string: abcdefghijklmnoPQRSTUVWXYZ String contains every letter. Q4. ( 25 points) You are creating a new account and need to provide a password. The password has the following requirements: a) The password must be at least 6 characters and at most 20 characters. b) It must contain at least one lowercase letter, one uppercase letter, and one number. Write a program that prompts the user to input a password and checks if the password is valid. If the password is valid, print a confirmation statement. If it is not, print a statement that the password is not valid. Sample Output: Enter your password: abcd Invalid password. Enter your password: Abcd 123 Valid password. Q5. (25 points) Write a program that prompts for the user to input a sentence. Then check this sentence to make sure the first word of the sentence is capitalized, and the sentence ends with a punctuation mark. If it not properly written, fix the sentence, print the type of error, and print the fixed sentence. Sample Output: Input a sentence: how are you today? Error: first word not capitalized. How are you today? Input a sentence: doing great Error: first word not capitalized. Error: in punctuation. Doing great. Input a sentence: What about you Error: in punctuation. What about you. Input a sentence: I am doing well too. I am doing well too. Deliverable

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!