mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
16 lines
223 B
Python
16 lines
223 B
Python
[
|
|
1,2,3
|
|
]
|
|
|
|
import ink
|
|
|
|
print('Once upon a time...')
|
|
|
|
index, val = ink.choice(
|
|
'There were two choices.',
|
|
'There were four lines of content.'
|
|
)
|
|
|
|
print(f'You selected {index}')
|
|
|
|
print('They lived happily ever after.') |