LearnFrenzy
Sign in Take a free test

Modules and Packages · Modules and Packages MCQ · Question 14

Using an import alias Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 14 Back to Exercise

After import statistics as st, which call works?

  • A st.mean([1, 2, 3]) Correct
  • B statistics.mean([1, 2, 3])
  • C mean([1, 2, 3])
  • D as.mean([1, 2, 3])
Correct Answer: Option A

Only the alias st is bound; the name statistics is not.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links