Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is python. Entire class due: 02/04/2020, 11:59 PM 4.20 Programming Assignment 2 - Problem 2 Problem 2- Passphrase Check (40 points) We are trying

image text in transcribed
It is python.
Entire class due: 02/04/2020, 11:59 PM 4.20 Programming Assignment 2 - Problem 2 Problem 2- Passphrase Check (40 points) We are trying to make sure your passphrase is acceptablel Write a script that asks for an input string that will be used as your password. This input string will have three words' separated by a space character. Each of these words has specific requirements, listed below. You must write a function for each requirement (three total functions). Make sure your functions follow the original template that provided. First Function: For the first word, you must check if it is a palindrome (it is the same forward and backward, like 'glolg' or 'tacocat"), is case-insensitive (so "GfraaRFg" or "Vobov' are valid), and only uses alphabetical letters ('tre3ert' and "h@s@hf" are not valid). Second Function: For the second word, you must check if it is a positive integer with at least 4 digits, containing only numeric characters (ie. no alphabetic, punctuation, or special characters) Third Function: For the third word, you must check if it starts with one of these special characters ('@'S". "X","8) ends with a punctuation mark (only commas (.). periode (), exclamation marks ("") and question marks (?) are allowed), and has three letters in between the special character and punctuation mark (e.g. '@dog" or "Stpb? or cat If the entire password meets all the correct specifications, then print valid", otherwise, print 'invalid" Template Functions (DO NOT CHANGE FUNCTION NAMES): det palindrome (): def integer () def special(); det special

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

LO3 Describe the purpose of equity legislation.

Answered: 1 week ago

Question

=+4 How does one acquire a global mindset?

Answered: 1 week ago

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago