william4416 commited on
Commit
dba61bb
·
verified ·
1 Parent(s): d78f75a

Update uts_courses.json

Browse files
Files changed (1) hide show
  1. uts_courses.json +6 -0
uts_courses.json CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  {
2
  "courses": {
3
  "Engineering": ["Civil Engineering", "Mechanical Engineering", "Electrical Engineering", "Software Engineering", "etc."],
 
1
+ try:
2
+ with open("uts_courses.json", "r") as file:
3
+ courses_data = json.load(file)
4
+ except Exception as e:
5
+ print("An error occurred while loading JSON file:", e)
6
+
7
  {
8
  "courses": {
9
  "Engineering": ["Civil Engineering", "Mechanical Engineering", "Electrical Engineering", "Software Engineering", "etc."],