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: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
(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 favorite color:
yellow
Enter pet's name:
Daisy
Enter a number:
6
You entered: yellow Daisy 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).
Enter favorite color:
yellow
Enter pet's name:
Daisy
Enter a number:
6
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).
Enter favorite color:
yellow
Enter pet's name:
Daisy
Enter a number:
6
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
This is all I have so far, I am very new to programming and am extremely stumped:
Â
Â
favoriteColor = input('Enter favorite color: n')
petName = input('Enter pets name: n')
num_ent = input('Enter a number: n')
Â
favoriteColor = input(yellow)
petName = input(Daisy)
num_ent = input(6)
Â
Print('You entered:'(favoriteColor, petName, num_ent))
Â
Â
# FIXME (2): Output two password options
password1 = favoriteColor
print('nFirst password:')
Â
Â
# FIXME (3): Output the length of the two password options
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly