0% found this document useful (0 votes)
5 views3 pages

Python Code for Age and Location Info

This document contains runnable Python code for a programming fundamentals assignment. It includes sections for age calculation, location details, examination schedule, and current temperature. Each section prints relevant information to the console.

Uploaded by

lemmadawit047
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Python Code for Age and Location Info

This document contains runnable Python code for a programming fundamentals assignment. It includes sections for age calculation, location details, examination schedule, and current temperature. Each section prints relevant information to the console.

Uploaded by

lemmadawit047
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Runnable code

Department of Business Administration, University of The People

CS 1101 Programming Fundamentals

Wilfredo Garcia Rivera

November 18, 2025


print("\n--- Part 2 (a): Age Calculation ---")

age = 25

result = age * 2

print(f"My age is {age}.")

print(f"16 * 2 = {result}")

print("\n--- Part 2 (b): Location Details ---")

city = "Addis Ababa"

country = "Ethiopia"

continent = "Africa"

print(f"City: {city}")

print(f"Country: {country}")

print(f"Continent: {continent}")

print("\n--- Part 2 (c): Examination Schedule ---")

start_date = "November 20th"

end_date = "December 15th"

print(f"Exam Period Start: {start_date}")

print(f"Exam Period End: {end_date}")


print("\n--- Part 2 (d): Current Temperature ---")

current_temp = 22

print(f"Date: November 18, 2025")

print(f"Temperature: {current_temp} degrees Celsius")

You might also like