Question: Q1. Python program and see a variable name that is completely CAPITALIZED. Why might this have been done? a. To indicate a constant value b.To
Q1. Python program and see a variable name that is completely CAPITALIZED. Why might this have been done?
a. To indicate a constant value
b.To indicate a keyword
c.To indicate a string value
d.It doesn't matter; upper and lowercase can be used interchangeably in Python
Q2. Modules may only be imported once in a program. TRUE OR FLASE?
Q3. In Python, floating point numbers are the same as
A.Strings
B.Modules
C.None of the answers shown here
Q4. To test if the contents of the variable s are equal to the string 'foo' or the string 'bar', you would write
a.s == 'foo' or 'bar'
b.s == 'foo' or s == 'bar'
Q5. How many of the following are valid Python variable names?
a.while
b.len
c. add2sum
d. to_be_or_not_2b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
