0
as it confuses variables in your code with variables in the external module
in this lesson web describe as follows: * imports all objects from a module. For example: from math import * This is generally discouraged, as it confuses variables in your code with variables in the external module. #i want to ask... For example: from math import pi #but,in my code I def pi already ... so in my code is read this pi of math or my code def?
1 Réponse
+ 5
吳宗原
Your code pi will be read
Example:
from math import pi
pi = "overwrite"
print(pi)
Output: overwrite