Advertisement
KodingKid

Basic Cryptocurrency System in Python #3 (Not so basic anymore)

Nov 27th, 2021
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.66 KB | None | 0 0
  1. print("DemoCoin!")
  2. print("The People Decide The Worth!")
  3. demoCoin = 0.01 #this is how much the crypto is worth in real currency
  4. wallet = 0 #this is how much crypto you have
  5. import time #this is very useful throughout this process
  6. while (True): #a basic loop
  7. time.sleep(60) #every minute
  8. wallet + 1 #you get a DemoCoin
  9. if wallet + 100: #everytime someone gets 100
  10. demoCoin + 0.01 #it's worth increases by a pence
  11.  
  12. advertisement = input("Do you want an advertisement on this program?") #you can put ads on here
  13. if advertisement == "Yes" or "yes": #yes
  14.     wallet - 100000 #you lose 100000 demoCoin
  15.     advertisement_confirm = input("Enter your advertisement here.") #this is creating the ad
  16.     print(advertisement_confirm) #and here's it displayed
  17. if advertisement == "No" or "no": #no
  18.     print("That's fine.") #and we move on
  19. if else: #if you say anything else
  20.     print("Sorry, no.") #then no
  21.    
  22. if demoCoin < 0: #if you have minus money
  23.     print("You ran out of crypto (lol)") #you go bankrupt
  24. if else: #if you still have money
  25.     print("You have" +demoCoin) #you keep going
  26.  
  27. end_program = input("Do you want to log off and get your money?") #log off or stay on?
  28. if end_program == "Yes" or "yes": #yes
  29.     value = wallet * demoCoin #value of your crypto
  30.     print("You now have £"+value) #how much money you now have
  31. if end_program == "No" or "no": #no
  32.     while (True): #continues on crypto mining
  33.     time.sleep(60)
  34.     wallet + 1
  35.     if wallet + 100:
  36.     demoCoin + 0.01
  37.     if else: #if anything else is said
  38.     while (True): #it assumes you want to keep on mining
  39.     time.sleep(60)
  40.     wallet + 1
  41.     if wallet + 100:
  42.     demoCoin + 0.01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement