Skip to content

Commit

Permalink
Merge pull request #16 from ZhanZiyuan/fix/selection_prompts
Browse files Browse the repository at this point in the history
Modified prompts of `input()` in `main()`.
  • Loading branch information
ZhanZiyuan authored Jun 13, 2024
2 parents a177e50 + b644b32 commit 9a30fb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pixel_puzzle/pixel_puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def main() -> None:

selection_of_mode = input(
'Please select one mode.\n'
'Options are "encode", "decode", "shuffle" and "recover".\n'
'Options are "encode", "decode", "shuffle" or "recover".\n'
)

match selection_of_mode:
Expand Down Expand Up @@ -184,14 +184,14 @@ def main() -> None:
while True:
level_of_image_quality = input(
'Please select the level of image quality.\n'
'Options are "low", "medium" and "high".\n'
'Options are "low", "medium" or "high".\n'
)
if level_of_image_quality in ["low", "medium", "high"]:
break
else:
print(
'Invalid input. Please try again. '
'Options are "low", "medium" and "high". '
'Options are "low", "medium" or "high". '
)
shuffle_pixels(
path_of_original_image,
Expand Down Expand Up @@ -229,14 +229,14 @@ def main() -> None:
while True:
level_of_image_quality = input(
'Please select the level of image quality.\n'
'Options are "low", "medium" and "high".\n'
'Options are "low", "medium" or "high".\n'
)
if level_of_image_quality in ["low", "medium", "high"]:
break
else:
print(
'Invalid input. Please try again. '
'Options are "low", "medium" and "high". '
'Options are "low", "medium" or "high". '
)
recover_pixels(
path_of_shuffled_image,
Expand Down

0 comments on commit 9a30fb6

Please sign in to comment.