Separate an imported value from a module attribute

A project contains a Python module named local_rates.py whose entire contents are shown below:


Python
fee = 5


In a fresh session, a booking program then runs this code successfully:


Python
import local_rates as local
from local_rates import fee as quoted_fee
local.fee = 7


Which statements are true immediately afterward? Select every true statement. Assume no other imports or assignments occur.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Modules and import Questions: