The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
3.11 Warm up: Creating passwords (Python 3)
(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)
Enter first word: sky Enter second word: Summer Enter a number: 6 sky Summer 6
(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).
First password: sky_Summer Second password: 6sky6Summer
(3) Output the length of each password (the number of characters in the strings). (Submit for 2 points, so 5 points total).
Number of characters in sky_Summer: 10 Number of characters in 6sky6: 5
# FIXME (1): Finish reading another word and an integer into variables.Â
# Output all the values on a single line
favoriteColor = input('Enter favorite color: n')
# FIXME (2): Output two password options
password1 = favoriteColor
print('First password:')
# FIXME (3): Output the length of the two password options
-----------