Skip to content

cognits/python-countries-capitals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Countries and Capitals

The goal for this project is that you can save, sort, show and send data 
by email entered by the user, remember that you must meet each of the 
requirements, then we show you what you should make.

Country:

After receiving this command the program should ask the name of
country and expect the corresponding input, as a second step should ask the
name of the capital I just enter and wait for input
corresponding. Following this should give me the message:
"Thank you for adding a country with its capital".

Countries:

I must give the list of countries already entered.

Capitals:

I must give the list of capital already entered.

All:

I must give the list of countries with related capital.

All Sorted by Capital:

I must give the same result as all but ordering the outputs
alphabetically by name of the capital.

All Mail:

I must send an email to "[email protected]" with Everything

Concepts required

1. Variables
2. If/Else statements
3. Integers Numbers
4. Input/Output
5. Print
6. While or For Loops
7. Try
8. Dictionary
9. Clases
10. Documentation

I/O

Input Values

1. You must take into account the validation of the data entered by the user.
2. You can use words or numbers for the user to choose their options.

Output messages

1. Remember to show helps to the user when he did a wrong action 
in the application.

Running tests

Enter the directory of your project and run nosetests in the terminal. The code should work perfectly.

#Reflection Questions! Answer the following questions in the reflection.txt file.

1. What did you learn in this lesson?
2. Explain how you solved the storage of data.
3. What is a dictionary and because it is important?
4. Explain how you solved the sort data.
5. What are the best practices followed to build your application?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages