This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
*/ | |
import React, { Component, RefObject } from 'react'; | |
import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import ceil | |
def getBool(prompt): | |
while True: | |
try: | |
return {"yes":True,"no":False,"y":True,"n":False}[input(prompt).lower()] | |
except KeyError: | |
print("Invalid input please enter Yes or No!") | |
inputText = input("Input cipher text: ") |