• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
11 views
print the data members of inventorytag. ex: if item_id is 314 and quantity_remaining is 500, print:
by (3.3k points)  

1 Answer

0 votes

Issue:

This equation is required to be coded in Python.

Solution:

class Inventorytag:   

def __init__(me):

        me.item_id = 0

        me.quantity_remaining = 0



ladiesboot = Inventorytag()

ladiesboot.item_id = 314

ladiesboot.quantity_remaining = 500



''' Your solution goes here '''

print('ID:', end=' ')

print(ladiesboot.item_id)

print('Qty:', end=' ')

print(ladiesboot.quantity_remaining)

 

by (1.6k points)  
edited by
...