3.13 LAB: Warm up: Creating passwords Instructor note You may fins that the auto gradar is very spacific about the formating for this lah, aspocialy for the firal two Ines. I approached this by stopping Pythoris defeut of putting a soace between eech porton of the output by adding e sep-" (thet is two single cuotes right beside each other) at the end of my print stetement, anc acding exra speces where needed in the other parts of the print statement. Here iser exampie printi "\akanber af charactera in ', paaawordi, '', lan(paaawordi), aaps') There is an extra space after the wort in, and another one after the cakan to spread aut the statement praperly (1) Promot the user to enter twa worcis und a number, storing each int: separee varicbies. Then, ouipu: those three velues on a single Ire epaeted by a space. Ex If she inout is yellun Datsy the output alter the prompis is: You enseredi yeliov Jaiey 6 Nose User input is not part of the program ouipu. P) Dutpu two panswarcds using a combination of the uner ingut. Format the pasnwands as sivawn beio total). Ex if the irout is yallow Daisy the output alter the prampis You ensered: vellov Jaiay 6 Pir panvordı yeilon_baiwy teoand panwo di fye low (3) Outpul the length of each sussword (the number of cheracters in the strings, Ex. If she irout is yell the output alter the prompis is: You enzered: yeliow Jaisy 6 Piret pasavordi veilow_Daloy Socond pasowordi GycilowG Number of charactern in yellow_hainy 12 Nunier of ch er i kyelli EM 3.13.1: LAB Wwam up: Oeating pesewords man py Load defat lemplate 1 fovorite.color - input("Enter favorite color:\n") 2 fovorite flomer - irput("Lnter favorite flover: Vn) nunber - input("Enter a nunber: n') 5 print('You entered:', favorite.color, nurber) 7 pessordi - faverite.color A possord? - ber + faverite.color nurber 10 print("first passord:"+ pasord) 11 print("Second possNord: 12 print("Nurer of characters in 13 printNar of characiers in * pasond) passnordi + ":- strclen(passwardi)) passord steclen(passaord2)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
3.13 LAB: Warm up: Creating passwords
Instructor note:
You may find that the auto gradar is very spacific about the formating for this lah aspecially for the firal two Ines I approached this
by stoppirg Pythoris defaut of putting s sp9ce between eech porton of the output lby adding a sep-" (thet is two single cuotes right.
beside each other) at the end of my print statement, anc acding exta speces where needed in the other parts of the print statement.
Here is en example:
printi \nkanber of characters in , pasaword1, ': ', len(paaswordl), sep= ')
There is an extra space after the wort in, and another ane after thernkan to spread aut the statement praperly
1) Prompt the user to enter twa warcis and a number, staring each into separate variebies. Then, oulput those three values on a single ire
separated by a space.
Ex: If the inout is
yullun
Daisy
the culput after the prompts is:
You enzered: yellov Jaisy 6
Noce. User input is not part of the program ouipu.
P) Dutput two passwards uning a cormbination of the user ingut. Format the passwards as shown belo
total).
Ex: If the inout is
yallow
Daisy
the output after the prarrpts in:
You enzered: yellov Daiay 6
Pirst paaaverd: yuilon_Daisy
Second panwo-di fyellan6
(3) Output the length of each sassword (the numriber of characters in the strings,
Ex: If the inout is
yullum
Daisy
the cutput after the prarpis is:
You enzered: yellov Jaisy 6
Pirst pasaverd: veilon Daisy
Socond pasoword: GyclloNG
Number of charactera in yellow naisy: 12
Nuniee of chaattera in hyulla 5: 8
LAR
ACT MTY 3.13.1: LAB Wam up: Cresting pesswords
main.py
Load defaut template.
1 favorite color - input("Enter favori te color:\n")
2 fovorite flomer - irput("Enter favori te flower:\n")
3 nurber - input("Enter a nunber:\n)
5 print("You entered:', fovorite.color, nurber)
7 pusswordi - favorite.color
8 possword2 - runber + favorite_color - nurber
10 print("nFi rst passord: "+ passordi)
11 print("Second possnord: "+ password2)
12 print("nNurer of characters in+ passwordi + ": strlen(pasSword1)))
13 print(Nuber of characters in'- passmord2 + ": '+ steclen(pasSNord2))
Transcribed Image Text:3.13 LAB: Warm up: Creating passwords Instructor note: You may find that the auto gradar is very spacific about the formating for this lah aspecially for the firal two Ines I approached this by stoppirg Pythoris defaut of putting s sp9ce between eech porton of the output lby adding a sep-" (thet is two single cuotes right. beside each other) at the end of my print statement, anc acding exta speces where needed in the other parts of the print statement. Here is en example: printi \nkanber of characters in , pasaword1, ': ', len(paaswordl), sep= ') There is an extra space after the wort in, and another ane after thernkan to spread aut the statement praperly 1) Prompt the user to enter twa warcis and a number, staring each into separate variebies. Then, oulput those three values on a single ire separated by a space. Ex: If the inout is yullun Daisy the culput after the prompts is: You enzered: yellov Jaisy 6 Noce. User input is not part of the program ouipu. P) Dutput two passwards uning a cormbination of the user ingut. Format the passwards as shown belo total). Ex: If the inout is yallow Daisy the output after the prarrpts in: You enzered: yellov Daiay 6 Pirst paaaverd: yuilon_Daisy Second panwo-di fyellan6 (3) Output the length of each sassword (the numriber of characters in the strings, Ex: If the inout is yullum Daisy the cutput after the prarpis is: You enzered: yellov Jaisy 6 Pirst pasaverd: veilon Daisy Socond pasoword: GyclloNG Number of charactera in yellow naisy: 12 Nuniee of chaattera in hyulla 5: 8 LAR ACT MTY 3.13.1: LAB Wam up: Cresting pesswords main.py Load defaut template. 1 favorite color - input("Enter favori te color:\n") 2 fovorite flomer - irput("Enter favori te flower:\n") 3 nurber - input("Enter a nunber:\n) 5 print("You entered:', fovorite.color, nurber) 7 pusswordi - favorite.color 8 possword2 - runber + favorite_color - nurber 10 print("nFi rst passord: "+ passordi) 11 print("Second possnord: "+ password2) 12 print("nNurer of characters in+ passwordi + ": strlen(pasSword1))) 13 print(Nuber of characters in'- passmord2 + ": '+ steclen(pasSNord2))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY