Skip to content

Instantly share code, notes, and snippets.

@akirap3
Created November 27, 2020 13:02
Show Gist options
  • Save akirap3/232f1a86bd076641f9d847c38b86e10b to your computer and use it in GitHub Desktop.
Save akirap3/232f1a86bd076641f9d847c38b86e10b to your computer and use it in GitHub Desktop.
checkShift = False
shiftNumber = list(range(1,26))
while checkShift != True:
    try:
        shift = int(input("Enter your shift number(1~25): "))
        if shift in shiftNumber:
            checkShift = True
    except:
        print("Please Enter number between 1 and 25!!")
        continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment