Python Forum
Need help with lists to continue my assignment code
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with lists to continue my assignment code
#9
Here is the solution for #3, although now #5 is not working!  
if (choice == '3'):
   print( "What website is this password for?" )
   website = input( )
   print( "What is the password?" )
   unencryptedPassword = input( )


   def encrypted_password():
       encrypted_password = passwordEncrypt( unencryptedPassword, encryptionKey )
       samplePasswordFile = [[website, encrypted_password]]
       passwords.append( [website, encrypted_password] )


if (choice == '5'):  # print out the password list
   for keyvalue in passwords:
       print( ', '.join( keyvalue ) )
Reply


Messages In This Thread
RE: Need help with lists to continue my assignment code - by tinabina22 - Oct-12-2016, 12:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  morse code assignment raymond2688 11 8,888 Jul-29-2019, 07:43 PM
Last Post: raymond2688
  Write pseudo code for a class assignment Scrimshot 3 3,536 May-07-2019, 05:38 PM
Last Post: Scrimshot
  Need some help with a bit of code for an assignment. JackMercer50 1 2,348 Feb-09-2019, 04:13 PM
Last Post: stullis
  [split] Need help with lists to continue my assignment code cylandur 7 9,704 Oct-11-2016, 03:11 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020