Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My code doesn't work.
#4
It still doesn't work even with Elif statments


bank = 50000
password = "Heil"
weapon_imports = ("3 RPGS, 30 AK47s, 12 Dragunov Snipers, 300lbs of C4 plastic explosive")
admin_access = 0
access_id = 0
print("This is you're bank speaking. We need to make sure we have all of our clients updated information. I just need you to tell me a few things.")
x = input("Enter you're credit card number")
y = input("Enter you're cvv number")
z = input("Enter you're expiry date")
print("Thanks for you're time, have a nice day")
if int(x) == 42069360 and  int(y) == 334 and z == "22/6/2018":
 print ("Its ya boii".upper())
access_id = access_id+1
if access_id == 1:
 admin_access = 1
if admin_access == 1:
 print("Greetings, Admin. How can i help you today?")
a = ("Nuclear Launch Codes")
b = ("List of weapon imports")
c = ("Withdrawl")
d = ("Deposit")
choice = input("Enter your choice: A,B,C or D:")
if choice.lower() != "a" and choice.lower() != "b" and choice.lower() != "c" and choice.lower() != "d":
 if choice == a:
   launch_codes=input("Enter the password for the launch codes")
 elif launch_codes != password:
   print("Here are your launch codes for platform Thor. EWHBFDR9XZG")
 elif choice == b: 
   print("Here are the list of weapon imports in the last week",weapon_imports)
 elif choice != c:
   withdrawl=input("How much would you like to withdrawl?")
   withdrawl = bank-withdrawl
 else:
   if choice != d:
     deposit=input("How much would you like to deposit")
   deposit = bank + deposit
Reply


Messages In This Thread
My code doesn't work. - by Loueegee - Jan-18-2017, 11:10 AM
RE: My code doesn't work. - by j.crater - Jan-18-2017, 11:30 AM
RE: My code doesn't work. - by Larz60+ - Jan-18-2017, 12:46 PM
RE: My code doesn't work. - by Loueegee - Jan-20-2017, 01:30 PM
RE: My code doesn't work. - by buran - Jan-20-2017, 01:46 PM
RE: My code doesn't work. - by wavic - Jan-20-2017, 02:17 PM
RE: My code doesn't work. - by Windspar - Jan-20-2017, 02:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP doesn't work YKR 1 789 Mar-28-2025, 02:10 PM
Last Post: snippsat
  I'm trying to install python 3.11.11 on windows 10 - it doesn't work Petonique 2 2,490 Feb-04-2025, 05:42 PM
Last Post: snippsat
  Can't get graph code to work properly. KDDDC2DS 1 733 Sep-16-2024, 09:17 PM
Last Post: deanhystad
  I can't for the life of me get this basic If statement code to work CandleType1a 8 2,509 May-21-2024, 03:58 PM
Last Post: CandleType1a
  Extending list doesn't work as expected mmhmjanssen 2 1,547 May-09-2024, 05:39 PM
Last Post: Pedroski55
  hi need help to make this code work correctly atulkul1985 5 2,078 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 1,621 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 2,080 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 1,487 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Beginner: Code not work when longer list raiviscoding 2 1,818 May-19-2023, 11:19 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020