Advertisement
Guest User

lab3.16.1

a guest
Feb 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. favorite_color = input('Enter your favorite color:\n')
  2. pets_name = input('Enter pet\'s name:\n')
  3. num = int(input('Enter a number:\n'))
  4.  
  5. print('You entered: ', favorite_color, pets_name, num)
  6.  
  7. password1 = favorite_color + '_' + pets_name
  8. password2 = str(num) + favorite_color + str(num)
  9.  
  10. print('\nFirst password: ', password1)
  11. print('Second password: ', password2)
  12.  
  13. len_password1 = len(password1)
  14. len_password2 = len(password2)
  15.  
  16. print('\nNumber of characters in', password1, ':', len_password1)
  17. print('Number of characters in', password2, ':', len_password2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement