Computer Project 3
Computer Project 3
tourism_data = []
while True:
print("\nMenu:")
if choice == 1:
place_data = {
'TSCode': ts_code,
'City': city,
'Spot': spot,
'Type': spot_type,
'SeasonStart': season_start,
'SeasonEnd': season_end
}
tourism_data.append(place_data)
elif choice == 2:
ts_code = int(input("Enter TSCode to remove: "))
break
else:
print(f"No data found for TSCode {ts_code}")
elif choice == 3:
elif choice == 4:
spot_type = input("Enter Type (Beach, Temple, National Park, etc.): ")
elif choice == 5:
print("Exiting program. Goodbye!")
break
else:
print("Invalid choice. Please choose a valid option.")
SAMPLE OUTPUT:
Menu:
1. Add Tourism Place Data
2. Remove Tourism Place Data
3. Display by City
4. Display by Type
5. Exit
Enter your choice: 1
Enter TSCode: 1
Menu:
1. Add Tourism Place Data
2. Remove Tourism Place Data
3. Display by City
4. Display by Type
5. Exit
Enter your choice: 1
Enter TSCode: 2
Menu:
1. Add Tourism Place Data
2. Remove Tourism Place Data
3. Display by City
4. Display by Type
5. Exit
Enter your choice: 3
Menu:
Menu:
1. Add Tourism Place Data
2. Remove Tourism Place Data
3. Display by City
4. Display by Type
5. Exit
Enter your choice: 2
Menu:
1. Add Tourism Place Data
2. Remove Tourism Place Data
3. Display by City
4. Display by Type
5. Exit
Enter your choice: 5
This project stands as a collective effort, and I am thankful to everyone who played a role,
big or small, in its successful completion.
Sahil Das
11-1695