# -*- coding: utf-8 -*-
"""
Created on Mon Mar  8 16:16:50 2021

@author: MOSS
"""

history = str('''
ANTH 131 - North American Indians

ANTH 176B - The American West

ARTHI 121A - American Art from Revolution to Civil War: 1700-1860

ARTHI 121B - Reconstruction, Renaissance, and Realism in American Art: 1860-1900

ARTHI 121C - Twentieth-Century American Art: Modernism and Pluralism, 1900-Present

ARTHI 136H - Housing American Cultures

AS AM 1 - Introduction to Asian American History, 1850-Present

AS AM 2 - American Migration Since 1965: Asians and others in the United States

BL ST 1 - Introduction to African-American Studies

BL ST 1H - Introduction to African-American Studies- Honors Seminar

BL ST 6 - The Civil Rights Movement

BL ST 6H - The Civil Rights Movement- Honors

BL ST 103 - The Politics of Black Liberation - The Sixties

BL ST 137E - Sociology of the Black Experience

BL ST 169AR - African-American History

BL ST 169BR - African-American History

BL ST 169CR - African-American History

C LIT 133 - Transpacific Literature

CH ST 1A - Introduction to Chicano/a Studies

CH ST 1B - Introduction to Chicano/a Studies

CH ST 1C - Introduction to Chicano/a Studies

CH ST 144 - The Chicano Community

CH ST 168A - History of the Chicano

CH ST 168B - History of the Chicano

CH ST 174 - Chicano/a Politics

CH ST 188C - Chicano Theater Workshop

ENGL 133 - Studies in American Regional Literature

ENGL 133BB - Studies in American Regional Literature

ENGL 133CL - Studies in American Regional Literature

ENGL 133GC - Studies in American Regional Literature

ENGL 133GP - Studies in American Regional Literature

ENGL 133MV - Studies in American Regional Literature

ENGL 133PL - Prisoner Literature in the U.S. & Global South

ENGL 133SA - Studies in American Regional Literature

ENGL 133SO - Studies in American Regional Literature

ENGL 133TL - Transpacific Literature

ENGL 134 - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134AA - Studies in the Literature of Cultural and Ethnic Communities in the United States

ENGL 134BB - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134CI - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134FC - Flor y Canto (Flower and Song): Chicanx and Indigenous American Poetry Writing and Reading

ENGL 134IA - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134IB - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134IR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134LC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134LI - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134LL - Comparative Pan-Latinx Literatures

ENGL 134MD - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134MP - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134NA - Studies in the Literature of Cultural and Ethnic Communities in the United States

ENGL 134NM - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134PC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134RR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134RS - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134TC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134TR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134XX - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 137A - Poetry in America Before 1900

ENGL 137B - Poetry in America since 1900

ENGL 191 - Afro-American Fiction and Criticism, 1920's to the present

ENV S 173 - American Environmental History

FEMST 155A - Women in American Society

FEMST 159B - Women in American History

FEMST 159C - Women in Twentieth-Century American History

HIST 11A - History of America's Racial and Ethnic Minorities

HIST 17A - The American People

HIST 17AH - The American People-Honors

HIST 17B - The American People

HIST 17BH - The American People-Honors

HIST 17C - The American People

HIST 17CH - The American People-Honors

HIST 105A - The Atomic Age

HIST 142AL - American Legal & Constitutional History

HIST 142S - Slavery and the Creation of African America: 1550-1861

HIST 159B - Women in American History

HIST 159C - Women in Twentieth Century American History

HIST 160A - The American South to 1865

HIST 160B - The American South, 1865 to the Present

HIST 161A - Colonial and Revolutionary America

HIST 161B - Colonial and Revolutionary America

HIST 164C - Civil War and Reconstruction

HIST 164IA - American Immigration

HIST 164IB - American Immigration

HIST 165 - America in the Gilded Age, 1876 to 1900

HIST 166A - United States in the Twentieth Century

HIST 166B - United States in the Twentieth Century

HIST 166C - United States in the Twentieth Century

HIST 166D - United States History Since Watergate

HIST 166LB - American Legal History

HIST 168A - History of the Chicanos

HIST 168B - History of the Chicanos

HIST 168C - Asian American History, 1850-1965

HIST 168D - Asian American History Since 1965

HIST 168M - Middle Eastern Americans

HIST 168N - Interracial Intimacy

HIST 169M - History of Afro-American Thought

HIST 172A - Politics and Public Policy in the United States

HIST 172B - Politics and Public Policy in the United States

HIST 173T - American Environmental History

HIST 175A - American Cultural History

HIST 175B - American Cultural History

HIST 176A - The American West

HIST 176B - The American West

HIST 177 - History of California

HIST 178A - American Urban History

HIST 178B - American Urban History

HIST 179A - Native American History to 1838

HIST 179B - Native American History, 1838 to the Present

MS 27 - American Military History and the Evolution of Western Warfare

POL S 12 - American Government and Politics

POL S 115 - Courts, Judges and Politics

POL S 127 - American Foreign Policy

POL S 151 - Voting and Elections

POL S 152 - American Political Parties

POL S 153 - Political Interest Groups

POL S 155 - Congress

POL S 157 - The American Presidency

POL S 158 - Power in Washington

POL S 162 - Urban Government and Politics

POL S 165 - Criminal Justice

POL S 180 - Bureaucracy and Public Policy

POL S 185 - Government and the Economy

RG ST 7 - Introduction to American Religion

RG ST 14 - Introduction to Native American Religious Studies

RG ST 151A - Religion in American History to 1865

RG ST 151B - Religion in American History Since 1865

RG ST 152 - Religion in America Today

SOC 137E - Sociology of the Black Experience

SOC 140 - Aging in American Society

SOC 144 - The Chicano Community

SOC 155A - Women in American Society

SOC 157 - Radicalism in Contemporary Life

THTR 180A - American Drama to 1940

THTR 180B - American Drama 1940 to Present
    '''
    )
ethnics = str('''
ANTH 148A - Comparative Ethnicity

ANTH 191 - Indigenous Movements in Asia

ARTHI 121D - African American Art and the African Legacy

AS AM 1 - Introduction to Asian American History, 1850-Present

AS AM 2 - American Migration Since 1965: Asians and others in the United States

AS AM 3 - Asian American Personality and Identity

AS AM 4 - Introduction to Asian American Popular Culture

AS AM 5 - Introduction to Asian American Literature

AS AM 7 - Globalization, Gender and Social Inequality in Asian America

AS AM 8 - Introduction to Asian American Gender and Sexuality

AS AM 9 - Race and Resistance: Asian American, Black, Chicana/o and Indigenous Freedom Struggles

AS AM 71 - Introduction to Asian American Religions

AS AM 100AA - Chinese Americans

AS AM 100BB - Japanese Americans

AS AM 100CC - Filipino Americans

AS AM 100DD - Korean Americans

AS AM 100FF - South Asian Americans

AS AM 107 - Third World Social Movements

AS AM 109 - Gender and Labor in Transnational Asian America

AS AM 111 - Asian American Communities and Contemporary Issues

AS AM 113 - Asian Americans and the Long Civil Rights Movement

AS AM 118 - Asian Americans in Popular Culture

AS AM 119 - Asian Americans and Race Relations

AS AM 120 - Asian American Documentary

AS AM 121 - Asian American Autobiographies and Biographies

AS AM 124 - Comparative Ethnic American Literature

AS AM 125 - Asian American Theater

AS AM 127 - Asian American Film, Television, and Digital Media

AS AM 130 - Colonialism and Migration

AS AM 131 - Asian American Women's History

AS AM 136 - Asian American Families

AS AM 137 - Multiethnic Asian Americans

AS AM 138 - Asian American Sexualities

AS AM 140 - Theory & Production of Social Experience

AS AM 146 - Racialized Sexuality on Screen and Scene

AS AM 148 - Introduction to Video Production

AS AM 149 - Screenwriting

AS AM 154 - Race and Law in Early American History

AS AM 155 - Racial Segregation from the Civil War to the Civil Rights Movement

AS AM 156 - Race and Law in Modern America

AS AM 157 - Asian Americans and Education

AS AM 161 - Asian American Religions

AS AM 162 - Asian American Mental Health

AS AM 165 - Ethnographic Research Methods in Asian America

BL ST 1 - Introduction to African-American Studies

BL ST 1H - Introduction to African-American Studies- Honors Seminar

BL ST 4 - Critical Introduction to Race and Racism

BL ST 6 - The Civil Rights Movement

BL ST 6H - The Civil Rights Movement- Honors

BL ST 14 - The History of Jazz

BL ST 15 - The Psychology of Blacks

BL ST 38A - Introduction to African-American Literature (Part 1)

BL ST 38B - Introduction to African-American Literature (Part II)

BL ST 50 - Blacks in the Media

BL ST 102 - Black Radicals and the Radical Tradition

BL ST 103 - The Politics of Black Liberation - The Sixties

BL ST 108 - Obama as a Political and Cultural Phenomenon

BL ST 122 - The Education of Black Children

BL ST 127 - Black Women Writers

BL ST 129 - The Urban Dilemma

BL ST 131 - Race and Public Policy

BL ST 137E - Sociology of the Black Experience

BL ST 142 - Music in African-American Cultures: U.S.A.

BL ST 160 - Analyses of Scientific Racism in the United States

BL ST 169AR - African-American History

BL ST 169BR - African-American History

BL ST 169CR - African-American History

BL ST 170 - African-Americans in the American Cinema

BL ST 172 - Contemporary Black Cinema

C LIT 153 - Border Narratives

C LIT 184A - From Superman to Spiegelman: The Jewish Graphic Novel

CH ST 1A - Introduction to Chicano/a Studies

CH ST 1B - Introduction to Chicano/a Studies

CH ST 1C - Introduction to Chicano/a Studies

CH ST 124G - The Virgin of Guadalupe: From Tilma to Tattoo

CH ST 125B - Contemporary Chicano and Chicana Art

CH ST 137 - Chicana/o Oral Traditions

CH ST 138 - Barrio Popular Culture

CH ST 139 - Chicana/o Native American Heritage

CH ST 140 - Chicana/o Mexican Cultural Heritage

CH ST 144 - The Chicano Community

CH ST 148 - Chicana Art and Feminism

CH ST 151 - De-Colonizing Feminism

CH ST 152 - Postcolonialism

CH ST 168A - History of the Chicano

CH ST 168B - History of the Chicano

CH ST 168E - History of the Chicano Movement

CH ST 168F - Racism in American History

CH ST 171 - The Brown/Black Metropolis: Race, Class, & Resistance in the City

CH ST 172 - Law and Civil Rights

CH ST 173 - Immigrant Labor Organizing

CH ST 174 - Chicano/a Politics

CH ST 175 - Comparative Social Movements

CH ST 178A - Global Migration, Transnationalism in Chicana/o Contexts

CH ST 180 - Survey of Chicano Literature

CH ST 181 - The Chicano Novel

CH ST 184A - Chicana Writers

CH ST 187 - Language, Power, and Learning

CH ST 188C - Chicano Theater Workshop

CH ST 189 - Immigration and the U.S. Border

EACS 140 - Indigenous Movements in Asia

ENGL 38A - Introduction to African-American Literature (Part 1)

ENGL 38B - Introduction to African-American Literature (Part II)

ENGL 50 - Introduction to U.S. Minority Literature

ENGL 114BW - Women and Literature

ENGL 134 - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134AA - Studies in the Literature of Cultural and Ethnic Communities in the United States

ENGL 134BB - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134CI - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134FC - Flor y Canto (Flower and Song): Chicanx and Indigenous American Poetry Writing and Reading

ENGL 134IA - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134IB - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134IR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134LC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134LI - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134MD - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134MP - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134NA - Studies in the Literature of Cultural and Ethnic Communities in the United States

ENGL 134NM - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134PC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134RR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134RS - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134TC - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134TR - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 134XX - Studies in Literature of Cultural and Ethnic Communities in the United States

ENGL 187AA - Studies in Modern Literature

ENGL 191 - Afro-American Fiction and Criticism, 1920's to the present

ENV S 189 - Religion And Ecology In The Americas

FAMST 127 - Latin American Cinema

FEMST 60 - Women of Color: Race, Class, and Ethnicity

FEMST 60H - Women of Color: Race, Class, and Ethnicity Honors

FEMST 142 - Black Women Filmmakers

FEMST 153 - Women and Work

HIST 11A - History of America's Racial and Ethnic Minorities

HIST 144B - Immigration and the U.S.-Mexico Border

HIST 144C - Chicanas and Latinas in U.S. History

HIST 144J - Race and Juvenile Justice in U.S. History

HIST 144W - Women of Color and Social Movements in the United States

HIST 160A - The American South to 1865

HIST 160B - The American South, 1865 to the Present

HIST 161A - Colonial and Revolutionary America

HIST 161B - Colonial and Revolutionary America

HIST 164IA - American Immigration

HIST 164IB - American Immigration

HIST 168A - History of the Chicanos

HIST 168B - History of the Chicanos

HIST 168E - History of the Chicano Movement

HIST 168M - Middle Eastern Americans

HIST 168N - Interracial Intimacy

HIST 179A - Native American History to 1838

HIST 179B - Native American History, 1838 to the Present

LING 36 - African-American English

LING 136 - African-American Language and Culture

LING 180 - Language, Race, and Ethnicity

LING 187 - Language, Power and Learning

RG ST 14 - Introduction to Native American Religious Studies

RG ST 61 - African Religions of the Americas

RG ST 62 - Dark Goddesses and Black Madonnas

RG ST 71 - Introduction to Asian American Religions

RG ST 110D - Ritual Art and Verbal Art of the Pacific Northwest

RG ST 114D - Religion and Healing in Native America

RG ST 123 - Asian American Religions

RG ST 124G - The Virgin of Guadalupe: From Tilma to Tattoo

RG ST 131F - The History of Anti-Semitism

RG ST 133B - From Superman to Spiegelman: The Jewish Graphic Novel

RG ST 133D - Gender in Jewish Culture

RG ST 140E - Islam in America

RG ST 193 - Religion and Ecology in the Americas

SOC 128 - Sociology of Race and Ethnicity

SOC 137E - Sociology of the Black Experience

SOC 139A - Black and White Relations: Towards Pluralism or Integration?

SOC 144 - The Chicano Community

SOC 153 - Women and Work

SOC 154F - The Chicano Family

SOC 155M - Contemporary U.S. Women's Movements

SOC 155W - Chicanas and Mexican Women in Contemporary Society

SPAN 109 - Spanish in the United States: The Language and Its Speakers

SPAN 135 - Survey of Chicano Literature

SPAN 139 - U.S. Latino Literature

SPAN 179 - The Chicano Novel

THTR 180E - Culture Clash: Studies in U.S. Latino Theater

THTR 180F - Asian American Theater

THTR 180G - Race, Gender, and Performance

THTR 184AA - African American Performance
    '''
    )

history = history.split('\n')
ethnics = ethnics.split('\n')


def remove_spaces(classes):
    for entry in classes[:]:
        if entry == '':
            classes.remove(entry)
    return classes

remove_spaces(history)
remove_spaces(ethnics)

def intersecting_list(class1, class2):
    common_list = []
    for entry in class1[:]:
        if entry in class2:
            common_list.append(entry)
    return common_list

common_list = intersecting_list(history, ethnics)

print(*common_list, sep='\n')
