SHARE
TWEET

Untitled

a guest Aug 19th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pirkinys = []
  2. kaina = []
  3.  
  4. kiek = input("Kiek prekių šiandien įsigysite ")
  5. kiek = int(kiek)
  6. count = 0
  7.  
  8. for item_number in range(kiek):
  9.     item = input("Koks prekės numeris " + str(item_number) + "? ")
  10.     pirkinys.append(item)
  11.     item2 = input(str(item) + " kaina" + "? ")
  12.     item2= int(item2)
  13.     count=count + item2
  14.  
  15. print("Jūs pirkote:")
  16. print(pirkinys)
  17. print("Sumokėjote: ", count, " eurų!")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top