Advertisement
Guest User

Untitled

a guest
May 23rd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. import math
  2. class admin:
  3. def __init__(self,username,password):
  4. User = input()
  5. password= input()
  6.  
  7. #self._username= User
  8. #self._password= Password1
  9. if username != User :
  10. print ('Username errato')
  11. elif password != Password1:
  12. print('Password errata')
  13. else:
  14. print (' benvenuto:')
  15. print('inserire nome utente e password')
  16. '''class games:
  17. def __init__(self):
  18. self._Count= 0
  19. self._TPirce = 0.0
  20. self._NameGames= input()
  21.  
  22. def addQuantity (self,Price):
  23. self._Count= self._Count+1
  24. self._TPirce= self._TPrice+price
  25. if count == 0:
  26. raise ZeroQuantityError (' Il prodotto selezionato non è disponibile')
  27. else:
  28. print ('Il gioco è disponibile')
  29.  
  30. def getTotal(self):
  31. return self._TPrice
  32.  
  33. def getCount(self):
  34. return self._Count
  35. class ListGames(games):
  36. def pes (self):
  37. pes == 5
  38. print('inserire il nome del prodotto')'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement