Which of the following statements is used to import a specific function from a module in Python? 

a) import <module>.<function>

b) from <module> import <function>

c) import <function> from <module>

d) from <function> import <module>

Answer:

Answer by student

b) from <module> import <function>.

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo