Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: While loop that needs to count up
Post: RE: While loop that needs to count up

Thank you
ImLearningPython Homework 4 3,080 Dec-17-2018, 02:30 PM
    Thread: While loop that needs to count up
Post: RE: While loop that needs to count up

Thank you. I wasn't sure how to do a for statement. Could you give me an example for future reference? This is the finished code block and it works as it should. def shampoo_instructions(num_cycles...
ImLearningPython Homework 4 3,080 Dec-17-2018, 01:19 AM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

Thank you everybody for the help. I was finally able to get this finished enough to get an A.
ImLearningPython Homework 22 10,582 Dec-17-2018, 12:12 AM
    Thread: While loop that needs to count up
Post: While loop that needs to count up

The code works as it should with one exception, I can't seem to figure it out. User-inputs a number and then I need the program to print 1 : text then 2 : text until the number that was entered is re...
ImLearningPython Homework 4 3,080 Dec-16-2018, 11:55 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

Getting rid of those lines and adding in what you have said, still leaves me with the over all issue of inside loop repeating indefinitely. Getting the loop to print with a couple different methods h...
ImLearningPython Homework 22 10,582 Dec-14-2018, 09:49 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

If I am understanding this correctly. In this line of code I would need to change options to something else. Then make options to this in place of 'yes'. yes = ("Yes", "Y", "yes", "y") if value in y...
ImLearningPython Homework 22 10,582 Dec-14-2018, 09:33 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

I'm looking at that link to try and get a better understanding of loops, I struggle greatly with them. I posted my post when he posted his, I did not see it while I was typing mine. Once I seen it, I...
ImLearningPython Homework 22 10,582 Dec-14-2018, 06:41 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

I am now getting my inside loops to run indefinitely, why? If I don't have the while loop at the beginning the other loops run as they should and stop. When I add the while and else statement, they r...
ImLearningPython Homework 22 10,582 Dec-14-2018, 04:32 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

I have a completely working program now with one exception. I can't seem to figure out where the indention error is coming from. File "C:/Users/brand/PycharmProjects/Test/Playground Two/.idea/Pla...
ImLearningPython Homework 22 10,582 Dec-14-2018, 02:53 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

Now that I have done that, I'm not sure how to fix this. Traceback (most recent call last): File "C:/Users/brand/PycharmProjects/Test/playground/Playground.py", line 22, in <module> set_ti...
ImLearningPython Homework 22 10,582 Dec-13-2018, 05:42 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

It's done. I have to sort the dictionary based off of user input. q = quit d = director y = year t = title I have the year code and I have the director code. The title sort isn't working out so wel...
ImLearningPython Homework 22 10,582 Dec-12-2018, 08:41 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

(Dec-12-2018, 05:31 PM)woooee Wrote: Your dictionary is messed up. Should be separate sub-lists 2011: [['The Artist', 'Michel Hazanavicius'], ['The Help', 'Tate Taylor']], If I change that then no...
ImLearningPython Homework 22 10,582 Dec-12-2018, 08:04 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

While working on this, I have it working as it should with one exception. Under the dictionary, there is two list that has 4 values instead of 2 values. When I run the program it isn't printing the ...
ImLearningPython Homework 22 10,582 Dec-12-2018, 04:44 PM
    Thread: Dictionary/List Homework
Post: RE: Dictionary/List Homework

Thank you
ImLearningPython Homework 22 10,582 Dec-12-2018, 12:49 PM
    Thread: Dictionary/List Homework
Post: Dictionary/List Homework

Hello all!! I am currently working on a homework assignment where I need to get information from a dictionary based off of a list. Example: dict = {'title':[year, 'name'],....etc list = ['name','na...
ImLearningPython Homework 22 10,582 Dec-12-2018, 12:13 AM

User Panel Messages

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