SHARE
TWEET

kevin love flo

a guest Oct 9th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def main():
  2.     #uang
  3.     uang = 100
  4.     #akhir uang
  5.     #Sawah
  6.     for l in range(7):
  7.         for m in range(7):
  8.             if(m == 0 or m == 6 or l == 0 or l == 6):
  9.                 print("*", end="")
  10.             else:
  11.                 print("-", end="")
  12.         print()
  13.     print()
  14.    #akhir sawah
  15.  
  16.    #pilihan
  17.     pilihan = False
  18.     while(pilihan == False):
  19.         print("Menu :")
  20.         print("1. Tanam")
  21.         print("2. Siram")
  22.         print("3. Cheat")
  23.         print("4. Panen")
  24.         print("5. Exit")
  25.  
  26.         pilih = int(input("Masukkan Pilihan anda : "))
  27.  
  28.     #pilihan 1
  29.         if(pilih == 1):
  30.              print("Pilih Benih :")
  31.              print("1. Potato 30G")
  32.              print("2. Carrot 20G")
  33.              print("3. Back To Menu")
  34.              pilih1 =int(input("Masukkan Pilihan Anda"))
  35.  
  36.              #potato
  37.              if(pilih1 == 1):
  38.                  print(uang - 30)
  39.              else:
  40.                  print("Uang Anda Tidak Cukup")
  41.             #akhir potato
  42.              if(pilih1 == 2):
  43.                  print(uang - 20)
  44.              else:
  45.                  print("Uang Anda Tidak Cukup")
  46.             #akhir potato
  47.     #akhir pilihan 1
  48.  
  49.     #akhir pilihan
  50. if __name__ == "__main__":
  51.         main()
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