0

In the syntax module_name.var , what is var?

4th Aug 2020, 9:42 PM
shreya das
shreya das - avatar
4 Respuestas
0
shreya das You can use dir or vars functions. dir(module_name) ---> list of the variable names. vars(module_name) ---> dictionary of the variables in name: value format.
4th Aug 2020, 9:51 PM
Seb TheS
Seb TheS - avatar
+ 1
Var is a property i.e variable or method defined in that module. ex : from math module math.PI is constant variable. math.pow(x,y) is a method..
4th Aug 2020, 9:46 PM
Jayakrishna 🇮🇳
0
File extension? Where did you see that?
4th Aug 2020, 9:44 PM
Seb TheS
Seb TheS - avatar
0
How do I get to know the functions that are already defined in a prefined module?
4th Aug 2020, 9:49 PM
shreya das
shreya das - avatar