Part of the series

Several example codes

~2 min read • Updated Oct 1, 2025

Program Overview

This Python program is designed for students in the second level of secondary education to explore available high school majors.
It displays a list of academic tracks along with brief descriptions to help students make informed decisions.


Python Code:


# Define high school majors and their descriptions
majors = {
    "Mathematics & Physics": "Focuses on analytical thinking, calculus, and physical sciences.",
    "Experimental Sciences": "Covers biology, chemistry, physics, and lab-based learning.",
    "Humanities": "Includes literature, history, philosophy, and social studies.",
    "Technical & Vocational": "Hands-on training in fields like electronics, mechanics, and IT.",
    "Art": "Explores visual arts, design, and creative expression.",
    "Business & Economics": "Introduces accounting, management, and economic principles."
}

# Display majors
print("--- High School Majors Overview ---")
for name, desc in majors.items():
    print(f"\nMajor: {name}\nDescription: {desc}")

Sample Output:


--- High School Majors Overview ---

Major: Mathematics & Physics  
Description: Focuses on analytical thinking, calculus, and physical sciences.

Major: Experimental Sciences  
Description: Covers biology, chemistry, physics, and lab-based learning.

...

Explanation:

- A dictionary stores major names and their descriptions
- The program loops through each item and prints it in a readable format
- This structure can be expanded to include career paths, required courses, or interactive selection


Written & researched by Dr. Shahin Siami