Skip to content

Commit 351cb03

Browse files
REFACTOR: Making the Prompt user colored in Credit Card Bill
1 parent 4379b15 commit 351cb03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Credit Card Bill/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def present_and_choose_file(matched_faturas):
140140

141141
print(f"{BackgroundColors.YELLOW}Multiple Fatura files found. Please choose one to process:{Style.RESET_ALL}")
142142
for idx, (filename, _) in enumerate(matched_faturas):
143-
print(f"[{idx}] - {filename}")
143+
print(f"{BackgroundColors.GREEN}[{BackgroundColors.CYAN}{idx}{BackgroundColors.GREEN}] - {BackgroundColors.CYAN}{filename}{Style.RESET_ALL}")
144144

145145
while True:
146146
try:
147-
choice = input(f"Select file index [0-{len(matched_faturas)-1}]: ").strip()
147+
choice = input(f"{BackgroundColors.GREEN}Select file index {BackgroundColors.CYAN}[0-{len(matched_faturas)-1}]{BackgroundColors.GREEN}: {Style.RESET_ALL}").strip()
148148
except (EOFError, KeyboardInterrupt):
149149
print()
150150
return None

0 commit comments

Comments
 (0)