0% found this document useful (0 votes)
6 views8 pages

CS Project Pile Python

This document certifies that Krishna, Chitransh, and Anubhav completed a project titled 'Country Data Management System' for their Computer Science class, showcasing their ability to manage country-related information using Python. The project includes features for adding and retrieving country data, with a focus on user-friendly interaction and error handling. Acknowledgments are made to their teacher and family for support, and the document also outlines the program's functionalities and provides sample inputs and outputs.

Uploaded by

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

CS Project Pile Python

This document certifies that Krishna, Chitransh, and Anubhav completed a project titled 'Country Data Management System' for their Computer Science class, showcasing their ability to manage country-related information using Python. The project includes features for adding and retrieving country data, with a focus on user-friendly interaction and error handling. Acknowledgments are made to their teacher and family for support, and the document also outlines the program's functionalities and provides sample inputs and outputs.

Uploaded by

krishna4072pi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Certificate of Completion

This is to certify that


Krishna, Chitransh and Anubhav
have successfully completed the project titled:
"Country Data Management System"
as part of the school project for the subject Computer Science. The
project demonstrates the ability to store, manage, and retrieve country-
related information using Python programming language. The project
includes functionalities such as adding country details, viewing specific
country data, and handling user inputs efficiently.
Project Highlights:
• Data management using a dictionary.
• User-friendly interface for adding and retrieving data.
• Error handling for invalid inputs.
• Clear, structured approach for managing country information
dynamically.
Date: 6 February,2025
Teacher's Name: Mrs Neelima Singh mam
School Name: PM Shri Kendriya Vidyalaya Sector 3 Rohini

Teacher Signature
Acknowledgment

I would like to express my sincere gratitude to


everyone who helped me in the successful completion
of my project titled "Country Data Management
System".
First and foremost, I would like to thank Mrs Neelima
Singh mam, my subject teacher, for their constant
guidance and support throughout the development of
this project. Their valuable feedback and
encouragement helped me stay on track and complete
the project with confidence.
Finally, I am grateful to my family for their
unwavering support and encouragement during the
course of this project. Their understanding and
motivation have been instrumental in completing this
work.
This project is a result of everyone’s combined effort,
and I am thankful for all the help I received.

Name: Krishna, Chitransh and Anubhav


Date: 6 February,2025
Function and Concept

This Python program lets you easily store and check out
info about different countries. You can either add a new
country or grab details about one that’s already saved.
When you add a country, you’ll give its name, capital,
population, president, and currency, and the program keeps
all that in a dictionary for easy access later. You can then
pull up things like the president’s name, the capital, or the
country’s currency, or just get the whole deal. It’s set up to
be super easy to use, handling your inputs smoothly,
making sure country names are all tidy, and double-
checking things to keep errors at bay. Overall, it’s a simple
but handy tool to keep country info organized and easy to
get to.

• Que: - Write a program create a Python program that


allows users to store and retrieve information about
different countries, including their capital, population,
president, and currency, while providing an interactive
and user-friendly interface for adding new data or
retrieving specific details?
#****************************************Krishna, Chitransh,
Anubhav****************************************#

Country_Data = {}
for i in range(1, 6):
print('')
Choice = int(input('''1. Enter details about a new country.
2. Check the data of an existing country.
>>> '''))

if Choice == 1:
Country_Name = input("Enter the name of the country: ")
Country_Capital = input("Enter the capital of the country: ")
Country_Population = input("Enter the population of the country: ")
Country_President = input("Enter the name of the president of the country: ")
Country_Currency = input("Enter the name of the currency of the country: ")

Data_List = [Country_President, Country_Capital, Country_Population,


Country_Currency]
Country_Data[Country_Name] = Data_List

print('Data of the country has been added successfully.')


print("")
print(Country_Data)

elif Choice == 2:
Country_Name = input("Enter the name of the country: ")

if Country_Name in Country_Data:
print("\nMenu")
print("1. Check the president of the country")
print("2. Check the capital of the country")
print("3. Check the population of the country")
print("4. Check the currency of the country")
print("5. Check all the details of the country")

Choice_2 = int(input("Enter your choice: "))

if Choice_2 == 1:
print("President of the country is:", Country_Data[Country_Name][0])
elif Choice_2 == 2:
print("Capital of the country is:", Country_Data[Country_Name][1])
elif Choice_2 == 3:
print("Population of the country is:", Country_Data[Country_Name][2])
elif Choice_2 == 4:
print("Currency of the country is:", Country_Data[Country_Name][3])
elif Choice_2 == 5:
print("\nData of the country:")
print(f"Country: {Country_Name}")
print(f"President: {Country_Data[Country_Name][0]}")
print(f"Capital: {Country_Data[Country_Name][1]}")
print(f"Population: {Country_Data[Country_Name][2]}")
print(f"Currency: {Country_Data[Country_Name][3]}")
else:
print("Invalid choice")
else:
print("Data of the country is not available")

else:
print("Invalid choice")

Input: -

1. Enter details about a new country.


2. Check the data of an existing country.
>>>1
Enter the name of the country:India
Enter the capital of the country:New Delhi
Enter the population of the country:1.4 Billion
Enter the name of the president of the country:Droupadi Murmu
Enter the name of the currency of the country:Indian Rupee

Output: -

Data of the country has been added successfully.


{'India': {'President': 'Droupadi Murmu', 'Capital': 'New Delhi', 'Population': '1.4
Billion', 'Currency': 'Indian Rupee'}}

Input2: -

1. Enter details about a new country.


2. Check the data of an existing country.
>>>2
Enter the name of the country:India

Output2: -

Menu
1. Check the president of the country
2. Check the capital of the country
3. Check the population of the country
4. Check the currency of the country
5. Check all the details of the country
Enter your choice: 5

Data of the country:


President: Droupadi Murmu
Capital: New Delhi
Population: 1.4 Billion
Currency: Indian Rupee

Input3: -

1. Enter details about a new country.


2. Check the data of an existing country.
>>>2
Enter the name of the country:Wakanda

Output3: -

Data of the country is not available

Reference
s
1.Python Software Foundation. (2023). Python
Documentation. Retrieved from https://docs.python.org/3/.

2.GeeksforGeeks. (2022). Python Dictionary. Retrieved from


https://www.geeksforgeeks.org/python-dictionary/.

3.W3Schools. (2023). Python Input, Output and Import.


Retrieved from
https://www.w3schools.com/python/python_functions.asp.
#Roles
• Krishna: - Code Developer
• Chitransh: - Word File maker
• Anubhav: - Tester and Printout

Thank
You 😊

You might also like