14 lines
367 B
Plaintext
14 lines
367 B
Plaintext
V items = [‘fee fie’, ‘huff and puff’, ‘mirror mirror’, ‘tick tock’]
|
||
|
||
L
|
||
L(item) items
|
||
print(‘#2. #.’.format(L.index + 1, item))
|
||
|
||
V reply = input(‘Which is from the three pigs: ’).trim(‘ ’)
|
||
I !reply.is_digit()
|
||
L.continue
|
||
|
||
I Int(reply) C 1..items.len
|
||
print(‘You chose: ’items[Int(reply) - 1])
|
||
L.break
|