Check sibling questions

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 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.

Ask a doubt
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 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.