Premier Programme
Premier Programme
Reply :
if__name __ == "__main__
main ()
Reply:
PYTHONPATH: This environment variable
helps the interpreter to locate the
module files imported into the program.
PYTHONSTARTUP: This environment
variable contains the path of the
initialization file containing the
source code.
PYTHONCASEOK: This variable is used to
find the first case-insensitive match
in the import statement
Example:
I am a beginner in Python
File text:
f = open ('softwaretestinghelp.txt',
'r') print (f. read (10)) print (f.
read ())
Production:
Python
Example:
a = 15 b = 30 list = [3,6,15,20,30]; if
(a in list) print “a is available in
given list” else print “a is not
available in given list” if (b not in
list) print “b is not available in
given list” else print “b is
available in given list ”
Production:
Reply:
Example:
Example:
Reply:
abs () is a built-in function that also
works with whole, float, and complex
numbers.
Coded:
True