Another implementation:
shift = 0
while not int(shift) in range(1,27):
shift = input("Please enter your shift (1 - 26) : ")#choose a shift
More Related Contents:
- Deleting certain elements in a list [closed]
- Search list for number in range
- What happens when start value < end value with range() cmd in Python?
- Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?
- How to use a decimal range() step value?
- Identify groups of continuous numbers in a list
- What is the difference between range and xrange functions in Python 2.X?
- range() for floats
- Is it possible to implement a Python for range loop without an iterator variable?
- Python, Matplotlib, subplot: How to set the axis range?
- How do I use a decimal step value for range()?
- `xrange(2**100)` -> OverflowError: long int too large to convert to int
- NameError: global name ‘xrange’ is not defined in Python 3
- converting a list of integers into range in python
- How to check if the current time is in range in python?
- How to loop backwards in python? [duplicate]
- Concatenating two range function results
- Unbounded range()
- Python range() and zip() object type
- How to find range overlap in python?
- Only index needed: enumerate or (x)range?
- How to set the subplot axis range
- Union of multiple ranges
- range over character in python
- Is there a need for range(len(a))?
- Python 3 range Vs Python 2 range
- Is it possible to make a `for` loop without an iterator variable? (How can I make make code loop a set number of times?)
- Does range() really create lists?
- Python: Checking to which bin a value belongs
- How can the built-in range function take a single argument or three?