Media, science and war in the twentieth century
Beijing , China
Visit Program Website
Tuition Fee
Start Date
Medium of studying
Duration
Details
Program Details
Degree
Courses
Major
History | Journalism | Media Studies
Area of study
Humanities | Journalism and Information
Course Language
English
About Program
Program Overview
Program Details
The provided program details are as follows:
Course Information
- Course ID: CREDITS: 1
- Hours per week: 1
- Total hours: 17
Course Description
Media, science and war in the twentieth century Note: The input context does not provide comprehensive details about the program, such as admission criteria, tuition fees, or research areas. The extracted information is presented in its entirety, adhering to the specified markdown format and tone. ```python
# Check if the input contains a 404 Error or is invalid
if "404 Error" in context or not context:
return "NA"
# Extract program details
lines = context.splitlines()
program_details = []
for line in lines:
if line.startswith("###") or line.startswith("##"):
program_details.append(line)
elif line.strip():
program_details.append(line)
# Format the extracted text in markdown
formatted_details = "## Program Details\n"
formatted_details += "The provided program details are as follows:\n"
formatted_details += "### Course Information\n"
for detail in program_details:
if "COURSE ID" in detail:
formatted_details += f"- Course ID: {detail.split(':')[-1].strip()}\n"
elif "HOURS PER WEEK" in detail:
formatted_details += f"- Hours per week: {detail.split(':')[-1].strip()}\n"
elif "TOTAL HOURS" in detail:
formatted_details += f"- Total hours: {detail.split(':')[-1].strip()}\n"
formatted_details += "### Course Description\n"
for detail in program_details:
if "Media, science and war in the twentieth century" in detail:
formatted_details += f"- {detail.strip()}\n"
# Add a note about the lack of comprehensive details
formatted_details += "\nNote: The input context does not provide comprehensive details about the program, such as admission criteria, tuition fees, or research areas. The extracted information is presented in its entirety, adhering to the specified markdown format and tone."
return formatted_details
context = """### Context:
Media, science and war in the twentieth century COURSE ID: CREDITS: 1
HOURS PER WEEK: 1 TOTAL HOURS: 17"""
print(extract_program_details(context))
See More
