Question: LAB 6 . 2 8 . 1 : Lab 3 , Part 1 : Using functions to create passwords 2 ways ACTIVITY Write two different
LAB
: Lab Part : Using functions to create passwords ways
ACTIVITY
Write two different password creation functions, password and password We put the first few characters of the header of each in the template for you. Write both of them below.
password has input arguments, intended to be two strings and
password has input arguments, again intended to be two strings and and in the third position a number,
Function password will return not print a string consisting of the two strings separated by an underscore character. Function password will return a string consisting of the characters of the number followed by followed by followed by the characters of
Hint To convert a number, to a string use the function str For example, str will return
If your functions work correctly you would have:
passwordyellow 'Rose'
yellow Rose
passwordyellow 'Rose',
yellowRose
#Remember: We expect that every function you write for CS will have a docstring in the proper place. You will get most of the points for this assignment from the autograder checking that your program behaves correctly, but some points will come from the TA's checking that the docstrings are there.
Suggestion Work on password first, and run with just password in the window below, and work on it until password gets full marks on the first three test cases. When you are doing that, you should expect to see a message telling you that you are getting points for the last four test cases.
Run
Reset Lab Tutorial
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
