Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 10 Level 3 Exercise 3 #558

Open
BVenetta opened this issue Jul 13, 2024 · 0 comments
Open

Day 10 Level 3 Exercise 3 #558

BVenetta opened this issue Jul 13, 2024 · 0 comments

Comments

@BVenetta
Copy link

BVenetta commented Jul 13, 2024

Go to the data folder and use the countries_data.py file.

This is the level 3 exercise 3 for day 10. I am struggling with how exactly i import and use the list? dictionary? to be able to extract stuff so that i can actually do the exercises. Could someone be able to help with this? I managed to do it for country.py by doing the following and I tried the same for countries_data.py but it doesnt seem to work.

import sys
import os

# Determine the current and parent directory paths
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.abspath(os.path.join(current_dir, os.pardir))

# Add the parent directory to sys.path
sys.path.append(parent_dir)

from data.countries import countries```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant