"""
체이스/메리엇 메리엇 카드 선택을 도와주는 간단한 스크립트 입니다. 기본적으로는 FM 의 차트를 이용하고, 각 카드의 약관을 확인했습니다.
https://frequentmiler.com/which-marriott-bonvoy-card-is-best/
다른 카드를 여는데 보유/싸인업 여부가 상관이 없는 체이스 본보이 (연회비 45불) 카드 역시 질문에 포함하지 않았습니다.
체이스 프리미어 (85불) 은 단종되었고, 업그레이드 보너스가
FM 의 차트에는 체이스 프리미어 플러스 비지니스 카드의 90/24에 대한 부분이 있지만, 실제 브릴리안트 약관에는 없기 때문에 뺐습니다.
스크립트를 수정하지 않는 조건하에서 자유롭게 배포하셔도 좋습니다.
Created by shilph(마일모아)/하늘아이(클리앙)
Latest modified date: Oct 6th, 2022
"""
if __name__ == "__main__":
# card name: you can open card & you can get signup bonus
cards_you_want = {"bold": [True, True],
"boundless": [True, True],
"bountiful": [True, True],
"brilliant": [True, True],
"bevy": [True, True],
"business": [True, True]}
name_match = {"bold": "체이스 볼드",
"boundless": "체이스 바운드리스 (구 프리미어 플러스)",
"bountiful": "체이스 Bountiful",
"bevy": "아멕스 Bevy",
"brilliant": "아멕스 브릴리안트 (구 SPG 럭셔리)",
"business": "아멕스 비지니스 (구 SPG 비지니스)"}
CAN_OPEN = 0
CAN_GET_SIGNUP = 1
print("체이스/아멕스 카드 신청 가능 여부를 쉽게 확인하기 위한 스크립트 입니다.")
print("스크립트를 수정하지 않는 조건하에서 자유롭게 배포하셔도 좋습니다.")
print("Created by shilph(마일모아)/하늘아이(클리앙)\n")
# Chase Ritz-Carlton
print("* 체이스 릿츠칼튼 *")
while True:
answer = input("현재 체이스 릿츠칼튼 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["brilliant"][CAN_GET_SIGNUP] = False
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Chase Premier
print("* 체이스 프리미어 (연회비 85불) *")
while True:
answer = input("현재 체이스 프리미어 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["boundless"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input(f"체이스 프리미어 카드의 싸입업/업그레이드 보너스를 받은지 24개월이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["boundless"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
# Chase Bold/Boundless
for card in ["bold", "boundless"]:
print(f"* {name_match[card]} *")
while True:
answer = input(f"현재 {name_match[card]} 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["boundless"][CAN_OPEN] = False
cards_you_want["bold"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input(f"{name_match[card]} 카드 승인을 받은지 90일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["brilliant"][CAN_GET_SIGNUP] = False
cards_you_want["business"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input(f"{name_match[card]} 카드의 싸입업/업그레이드 보너스를 받은지 24개월이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["brilliant"][CAN_GET_SIGNUP] = False
cards_you_want["business"][CAN_GET_SIGNUP] = False
cards_you_want["bold"][CAN_OPEN] = False
cards_you_want["boundless"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Chase Bountiful
print("* 체이스 Bountiful *")
while True:
answer = input("현재 체이스 Bountiful 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["bountiful"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input("체이스 Bountiful 카드 승인을 받은지 90일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["brilliant"][CAN_GET_SIGNUP] = False
cards_you_want["business"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input("체이스 Bountiful 카드의 싸입업/업그레이드 보너스를 받은지 24개월이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
cards_you_want["brilliant"][CAN_GET_SIGNUP] = False
cards_you_want["business"][CAN_GET_SIGNUP] = False
cards_you_want["bountiful"][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Chase Business ($45)
print("* 체이스 비지니스 (연회비 45불) *")
while True:
answer = input("현재 체이스 비지니스 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["business"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Chase Business ($99)
print("* 체이스 프리미어 플러스 비지니스 (연회비 99불) *")
while True:
answer = input("현재 체이스 프리미어 플러스 비지니스 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["business"][CAN_GET_SIGNUP] = False
cards_you_want["bevy"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Amex Bonvoy (old SPG)
print("* 아멕스 본보이 (구 SPG) *")
while True:
answer = input("현재 아멕스 본보이 (구 SPG) 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bold"][CAN_GET_SIGNUP] = False
cards_you_want["boundless"][CAN_GET_SIGNUP] = False
cards_you_want["bountiful"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input("아멕스 본보이 (구 SPG) 카드 승인을 받은지 90일이 지나지 않았거나, 싸입업/업그레이드 보너스를 받은지 24개월이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bountiful"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# Amex Bevy, Brilliant, Business
for card in ["bevy", "brilliant", "business"]:
print(f"* 아멕스 {name_match[card]} *")
while True:
answer = input(f"기존에 {name_match[card]} 카드를 만들었거나, 업글/다운으로 보유한 적이 있다 (싸인업/업글보너스 유무 무관)? (Y/N) ").lower()
if answer == "y":
cards_you_want[card][CAN_OPEN] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input(f"현재 {name_match[card]} 카드를 보유중이거나, 닫거나 다운한지 30일이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bountiful"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
while True:
answer = input(f"{name_match[card]} 카드 승인을 받은지 90일이 지나지 않았거나, 싸입업/업그레이드 보너스를 받은지 24개월이 지나지 않았다 (Y/N) ").lower()
if answer == "y":
cards_you_want["bold"][CAN_GET_SIGNUP] = False
cards_you_want["boundless"][CAN_GET_SIGNUP] = False
cards_you_want["bountiful"][CAN_GET_SIGNUP] = False
break
elif answer == "n":
break
else:
print("답변은 대소문자 상관없이 Y 혹은 N 으로 해주세요.")
print("")
# result
print("=== 분석 결과 발표 ===")
for card in ["bold", "boundless", "bountiful", "brilliant", "bevy", "business"]:
if not cards_you_want[card][CAN_OPEN]:
print(f"{name_match[card]} 카드는 열 수 없습니다.")
elif not cards_you_want[card][CAN_GET_SIGNUP]:
print(f"{name_match[card]} 카드는 열 수 있지만, 싸인업은 받을 수 없습니다.")
else:
print(f"{name_match[card]} 카드는 열 수 있고, 싸인업도 받을 수 있습니다.")
print("체이스 카드들은 5/24 여부에 따라서 열 수 없으니 주의하세요.\n")
input("아무 키나 눌러주세요.")
About Online Python Compiler
Try our Online Python Compiler (Version Python v3.6.2) to Edit, Run, and Share your Python Code directly from your browser. This online development environment provides you the latest version Python v3.6.2.
How to use Online Python Compiler?
Write and Execute Code
- Write your program (or, paste it) directly under the "Source Code" tab.
- If you want to save your program, go to the "Project" menu and save it.
- You can directly execute your program without saving it by clicking on on "Execute" button.
User Input
The latest version of Coding Ground allows to provide program input at run time from the termnial window exactly the same way as you run your program at your own computer. So simply run a program and provide your program input (if any) from the terminal window available in the right side.
Online Python Compiler: Keyboard Shortcuts
The following are the keyword shortcut of this Online Python Compiler:
Shortcut | Description |
⌘ + Enter | Run the program |
⌘ + S | Save Project (Login Required) |
⇧ + ⌘ + S | Save As Project |
⌘ + P | New Project |
⌘ + G | Share Project |
⌘ + Z | Undo Editing |
⌘ + Y | Redo Editing |
⌘ + A | Select All Text |
⌘ + X | Cut Selected Text |
⌘ + C | Copy Selected Text |
⌘ + V | Paste Copied Text |
⌘ + F | Search Text |
⌘ + ⌥ + F | Replace Text |
Shortcut | Description |
Ctrl + Enter | Run the program |
Ctrl + S | Save Project |
Shift + Ctrl + S | Save As Project |
Ctrl + G | Share Project |
Ctrl + Z | Undo Editing |
Ctrl + Y | Redo Editing |
Ctrl + A | Select All Text |
Ctrl + X | Cut Selected Text |
Ctrl + C | Copy Selected Text |
Ctrl + V | Paste Copied Text |
Ctrl + F | Search Text |
Ctrl + H | Replace Text |
Online Python Compiler: Save and Share Python Code (Project)
Save Python Project Online
You can save your Python Project with us so that you can access this project later on. To save a project you will need to create a login Id with us. So before you save a project, please create a login Id using a link given at the top right corner of this page.
Share Python Project Online
You can use this feature to share your Python Code with your teachers, classmates and colleagues. Just click Share Button and it will create a short link, which can be shared through Email, WhatsApp or even through Social Media. A shared link will be deleted if it has been passive for almost 3 months.
More Features of Online Python Compiler
- Theme – You can change the current editor's theme from the "Editor Theme" option under "Settings" menu.
- Font Size – You can change the font size of the editor /compiler from from the "Font Size" option under "Settings" menu.
- Tab Size – You can change the tab size from the "Tab Size" option under "Settings" Menu.
- Show/Hide Line Numbers – You can show/hide the line number with the code from the "Show Line Numbers" or "Hide Line Numbers" option under "Settings" Menu.
- And, many more.
Benefits of Using Online Python Compiler
There are several benefits of using the Online Python Compiler to run your Python code:
- Platform independence: You can run your code from any device without taking care of operating systems.
- Convenience: You don't need to install anything for using this.
- No setup required: There is no need for additional setup to run your code.
- Updated version: Our online compiler/editors/terminals are the latest up-to-date.