MCPcopy Create free account
hub / github.com/geekcomputers/Python / get_int

Function get_int

Caesar Cipher Encoder & Decoder.py:10–21  ·  view source on GitHub ↗

Get integer, otherwise redo

()

Source from the content-addressed store, hash-verified

8
9
10def get_int() -> int:
11 """
12 Get integer, otherwise redo
13 """
14
15 try:
16 key = int(input("Enter number of characters you want to shift: "))
17 except:
18 print("Enter an integer")
19 key = get_int()
20
21 return key
22
23
24def main():

Callers 2

encodeFunction · 0.85
decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected