# print the data members of inventorytag. ex: if item_id is 314 and quantity_remaining is 500, print:

101 views

## Problem :

Need solution for bellow problem statement
print the data members of inventorytag. ex: if item_id is 314 and quantity_remaining is 500, print:

## Solution :

#Printing the data members of InventoryTag. Ex: if item_id is 314 and quantity_remaining is 500, print: ID: 314 Qty: 500

class InventoryTag:

def _init_(self):

self.quantity_remaining = 0

self.ID = 0

red_sweater = InventoryTag()

red_sweater.item_id = 314

red_sweater.quantity_remaining = 500

print("qty of inventory remaining")

print("%s is %d" %("ID", 314),end= " ")

print("%s is %d" %("quantity_remaining", 500))

## Related questions

1 vote
12 views
Problem: How to fix this error : print the number of common factors of a and b in c
1 vote
3 views
Problem: How can I deal with this problem : print all permutation of string both iterative and recursive way in java
1 vote
3 views
1 vote
2 views
Problem: I need a help , How I can fix this : print all permutations of a string
1 vote
1 view
Problem: How to fix this error : print all permutations of a string java
1 vote
2 views
Problem: Can anyone tell me the solution of this problem? print all permutations of a string with duplicates
1 vote
2 views
Problem: Can someone please help fix this uncaught error : print diagonal elements of matrix in java
1 vote