REST APIs with Flask and Python - Relative Imports in Python

REST APIs with Flask and Python - Relative Imports in Python

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains the concept of relative imports in Python, highlighting their complexity and potential pitfalls for beginners. It contrasts relative imports with absolute imports, emphasizing the importance of understanding file structure and import paths. The tutorial demonstrates how relative imports work, their limitations, and why absolute imports are generally recommended. The instructor advises against using relative imports due to their complexity and potential issues during debugging, suggesting that absolute imports offer a more straightforward and reliable approach.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What are the potential issues when using relative imports in Python?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How can you access a parent folder using relative imports?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the recommended practice regarding the use of relative imports in Python?

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?