-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 29870d9
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
def display_menu(): | ||
print("Select a JetBrains tool by entering the corresponding number:") | ||
tools = [ | ||
"WebStorm", | ||
"IntelliJ", | ||
"CLion", | ||
"Rider", | ||
"GoLand", | ||
"PhpStorm", | ||
"ReSharper", | ||
"PyCharm" | ||
] | ||
for i, tool in enumerate(tools, 1): | ||
print(f"{i}. {tool}") | ||
return tools | ||
|
||
def main(): | ||
tools = display_menu() | ||
|
||
try: | ||
choice = int(input("Enter your choice (1-8): ")) | ||
if 1 <= choice <= len(tools): | ||
print(f"You have selected: {tools[choice - 1]}") | ||
else: | ||
print("Invalid choice. Please enter a number between 1 and 8.") | ||
except ValueError: | ||
print("Invalid input. Please enter a valid number.") | ||
|
||
if __name__ == "__main__": | ||
main() |