Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Removing items from list
Post: RE: Removing items from list

This works but we've not learned how to reconstruct a list. How would I delete the [website, password] list? Would I need to take the given index of the website and delete whatever list that websi...
slackerman73 Homework 8 4,421 Dec-12-2019, 04:07 AM
    Thread: List Help
Post: RE: List Help

Ichabod - I don't have a choice. This is a program for a class I'm taking and the list was defined for me. I'm simply supposed to write the code to display the password for a given website. I hate ...
slackerman73 Homework 3 2,294 Dec-12-2019, 03:58 AM
    Thread: Removing items from list
Post: Removing items from list

I'm trying to remove an item from the passwords list. I keep getting Traceback (most recent call last): passwords.remove(websitetodelete) #This line is where I'm hung up. Trying to remove the...
slackerman73 Homework 8 4,421 Dec-12-2019, 03:19 AM
    Thread: List Help
Post: List Help

Below is a snippet of my program. I need to be able to match the user's input to a website and then print the password associated with that website. My initial though was to do an if statement to lo...
slackerman73 Homework 3 2,294 Dec-08-2019, 09:51 PM
    Thread: Help with List Loops
Post: RE: Help with List Loops

Thank you Craig....and thanks for making me work for it. You gave me the code snippet but I still had to manipulate it a little get it the way I needed. listToPrint = [] while True: newWord = in...
slackerman73 General Coding Help 4 2,732 Nov-24-2019, 09:37 PM
    Thread: Help with List Loops
Post: Help with List Loops

I'm working through an assignment and am having some difficulty. Code below listToPrint=['dog', 'cat', 'hamster', 'pig'] while len(listToPrint) > 1: print ('Your list consists of ' + str(lis...
slackerman73 General Coding Help 4 2,732 Nov-24-2019, 08:11 PM
    Thread: Variable Issue
Post: RE: Variable Issue

That was it! OMG, I can't believe it. I sat here looking at that for over 20 minutes and couldn't find anything wrong with what I had written. I'll definitely keep on the lookout for case in the fu...
slackerman73 General Coding Help 2 1,930 Nov-09-2019, 04:34 PM
    Thread: Variable Issue
Post: Variable Issue

Hello - I'm very new to python and working on a simple voting program where it asks what the user's age is. If they are 18 or older it will print "You're of voting age. If they're not 18, it will pr...
slackerman73 General Coding Help 2 1,930 Nov-09-2019, 04:15 PM

User Panel Messages

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