2.14 answered Section 2.14 - IT 140 Introduction to Scripting v3 PDF

Title 2.14 answered Section 2.14 - IT 140 Introduction to Scripting v3
Course Intro To Scripting
Institution Southern New Hampshire University
Pages 4
File Size 213.8 KB
File Type PDF
Total Downloads 97
Total Views 131

Summary

Textbook section 2.14 answered. Shows all answers including the lab warmup....


Description

11/6/21, 4:42 PM

Section 2.14 - IT 140: Introduction to Scripting v3

2.14 LAB: Warm up: Creating passwords (1) Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a single line separated by a space. (Submit for 1 point) Ex: If the input is: yellow Daisy 6 the output after the prompts is: You entered: yellow Daisy 6 Note: User input is not part of the program output. (2) Output two passwords using a combination of the user input. Format the passwords as shown below. (Submit for 2 points, so 3 points total). Ex: If the input is: yellow Daisy 6 the output after the prompts is: You entered: yellow Daisy 6 First password: yellow_Daisy Second password: 6yellow6

(3) Output the length of each password (the number of characters in the strings). (Submit for 2 points, so 5 points total). Ex: If the input is: yellow Daisy 6

https://learn.zybooks.com/zybook/SNHUIT140v3/chapter/2/section/14

1/4

11/6/21, 4:42 PM

Section 2.14 - IT 140: Introduction to Scripting v3

the output after the prompts is: You entered: yellow Daisy 6 First password: yellow_Daisy Second password: 6yellow6 Number of characters in yellow_Daisy: 12 Number of characters in 6yellow6: 8 247772.2026032.qx3zqy7

LAB ACTIVITY

2.14.1: LAB: Warm up: Creating passwords

5/5

main.py

Load default template...

fav_color = input() fav_flower = input() fav_num = input() print('You entered:',fav_color,fav_flower,fav_num) password1 = fav_color + '_' + fav_flower password2 = fav_num + fav_color + fav_num print() print('First password:',password1) print('Second password:',password2) print() print('Number of characters in '+password1+':',len(password1)) print('Number of characters in '+password2+':',len(password2))

Develop mode

Submit mode

When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading.

Submit for grading Signature of your work

What is this?

11/6.. S-------------------------|1|1|3|0|3|3|3|0|0|3|3|1 |0|3|0|3|3|3|3|0|0|3|3|3|3|3|3|3|3|3|3|3|5 ..11/6

Latest submission - 4:42 PM PDT onSubmission passed https://learn.zybooks.com/zybook/SNHUIT140v3/chapter/2/section/14

Total score:



2/4

11/6/21, 4:42 PM

Section 2.14 - IT 140: Introduction to Scripting v3

11/06/21

all tests

5/5 Download this submission

Only show failing tests

1/1

1: Compare output Input

Your output correctly contains

yellow Daisy 6 You entered: yellow Daisy 6

1/1

2: Compare output Input

yellow Daisy 6 You entered: yellow Daisy 6

Your output correctly contains

First password: yellow_Daisy Second password: 6yellow6

1/1

3: Compare output Input

blue Harvey 7 You entered: blue Harvey 7

Your output correctly contains

First password: blue_Harvey Second password: 7blue7

1/1

4: Compare output



Input

yellow Daisy 6

https://learn.zybooks.com/zybook/SNHUIT140v3/chapter/2/section/14

3/4

11/6/21, 4:42 PM

Section 2.14 - IT 140: Introduction to Scripting v3

You entered: yellow Daisy 6 Your output correctly ends with

First password: yellow_Daisy Second password: 6yellow6 Number of characters in yellow_Daisy: 12 Number of characters in 6yellow6: 8

1/1

5: Compare output



Input

blue Harvey 7 You entered: blue Harvey 7

Your output correctly ends with

First password: blue_Harvey Second password: 7blue7 Number of characters in blue_Harvey: 11 Number of characters in 7blue7: 6

5 previous submissions 4:41 PM on 11/6/21

3/5

View

4:40 PM on 11/6/21

3/5

View

4:40 PM on 11/6/21

3/5

View

4:38 PM on 11/6/21

3/5

View

4:37 PM on 11/6/21

3/5

View

     Feedback?

https://learn.zybooks.com/zybook/SNHUIT140v3/chapter/2/section/14

4/4...


Similar Free PDFs