Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. QTY = ''
  2.  
  3. itemlist = ['0003']
  4.  
  5. stuffInBox = '0003'
  6.  
  7. def func():
  8. if (stuffInBox in itemlist):
  9. func2(stuffInBox)
  10. else:
  11. pass
  12.  
  13. def func2(itemno):
  14. global QTY
  15. if itemno == "0003":
  16. QTY = '5'
  17.  
  18.  
  19.  
  20. dicta = {
  21. "0003": 'QTY is '+QTY+' high'
  22. }
  23.  
  24. func()
  25. print(dicta[stuffInBox])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement