01. Document and Structure Code 1 - EXAM Flashcards
Which is best practice when using indentation and white space in Python?
Select one:
a. Anything inside a routine should be indented
b. White space is not important to use with statements
c. Always use white space
d. Make single lines as long as possible
a. Anything inside a routine should be indented
Which best defines the Pydoc feature?
Select one:
a. A statement which generates documentation on variables
b. A library module which automatically generates documentation on Python modules
c. A statement which automatically generates documentation on Python modules
d. A module which automatically generates documentation on variables
b. A library module which automatically generates documentation on Python modules
The def keyword is used to start a __________ in Python.
Select one:
a. class
b. function
c. statement
d. variable
e. GUI
b. function