Skip to content

Commit

Permalink
1. Base Template
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu-p01 committed May 22, 2024
0 parents commit 29870d9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions reset.py
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()

0 comments on commit 29870d9

Please sign in to comment.