Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: project shopping cart
Post: RE: project shopping cart

i was able to create a dictionary for the cart - {itemName}: (price, qty) how do i get access to individual value like just price or qty
pkmnmewtwo Homework 1 3,356 May-03-2020, 10:46 PM
    Thread: project shopping cart
Post: project shopping cart

I need to do three enhancement on this program and i'm not sure where to start the enhancement are (2) Enhancement 2. The quantity of each item selected will be tracked and displayed. When an item is...
pkmnmewtwo Homework 1 3,356 May-03-2020, 12:34 PM
    Thread: project error code
Post: project error code

when i run my program i get an error code ValueError: invalid literal for int() with base 10: '' in line 114, in <module> response = input("Add"+book_list[int(item_pic)-1][0]+" y/n? ") impor...
pkmnmewtwo Homework 2 24,263 May-02-2020, 12:22 PM
    Thread: project help
Post: RE: project help

infile = "books.txt" fi = open(infile,"r") book_item = {} for line in fi: list1 = line.split(",") des = list1[0] price = list1[1] book_item[des] = price.strip() fi.close() infile1 = "...
pkmnmewtwo Homework 6 2,834 Apr-28-2020, 07:54 PM
    Thread: project help
Post: RE: project help

I'm stuck on creating and formatting menu. was able to make a dictionary. I'm not sure how to format it to look like this No. Item Description Price === =========================== ======== 1 - Vasque...
pkmnmewtwo Homework 6 2,834 Apr-28-2020, 06:57 PM
    Thread: project help
Post: project help

The inventory of the items for sale is growing and will continue to do so. It’s now no longer practical to change the code’s internals every time an item is added (or deleted) from the system. Instead...
pkmnmewtwo Homework 6 2,834 Apr-28-2020, 04:12 PM
    Thread: python dictionary
Post: RE: python dictionary

im getting errors key 1 with the if state movies = [[1939, "Gone With the Wind", "drama"], [1943, "Casablanca", "drama"], [1965, "The Sound of Music", "musical"], [1969,...
pkmnmewtwo Homework 3 2,058 Apr-01-2020, 12:38 AM
    Thread: python dictionary
Post: python dictionary

I'm kinda stuck on this homework assignment and i need help. this program has a menu but i got all the menu except this part. this menu selection is asking the user input for the category and going th...
pkmnmewtwo Homework 3 2,058 Mar-31-2020, 08:47 PM

User Panel Messages

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