Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QTY = ''
- itemlist = ['0003']
- stuffInBox = '0003'
- def func():
- if (stuffInBox in itemlist):
- func2(stuffInBox)
- else:
- pass
- def func2(itemno):
- global QTY
- if itemno == "0003":
- QTY = '5'
- dicta = {
- "0003": 'QTY is '+QTY+' high'
- }
- func()
- print(dicta[stuffInBox])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement