What is a from import statement and write the syntax for it?
Answer / Gireesh Chandra
The `from ... import` statement allows you to give individual items from a module a local name, so they do not need to be prefixed with the module name when used in your program. The basic syntax is: `from module_name import item1, item2, ...`. For example, `from math import sin, cos, pi`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is python encapsulation?
How is Multithreading achieved in Python?
What is lambda function ?
How to install python on windows and set path variable?
What is the best python interpreter?
What is += in python mean?
What does float () do in python?
What is a Lambda form? Explain about assert statement?
Does python do until loop?
What is the difference between python 2 and python 3?
What is composition in python?
How do you extend in python?