Ask Question
31 January, 19:14

Which of the following Python variable name follows Python variable naming conventions described in the lesson? A. unit_price B. unitpVariVrice C. Unit_Price D. xyz

+2
Answers (2)
  1. 31 January, 22:12
    0
    unit_price

    Explanation:

    Variables should be named using lowercase letters as opposed to classes. Camel case names work very fine but aren't a convention in naming variables in Python. Under scores are pretty and are advised for long words that are separated such as they appear as phrases. Python variable names should however make sense such as xyz in the options which is a "no no" for variable names as it could make it difficult to understand code in the future.
  2. 31 January, 22:52
    0
    Option A and option C

    Explanation:

    Variable names in python consist of upper and lower case letters, digits and under score character and variable names can never start with a number.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following Python variable name follows Python variable naming conventions described in the lesson? A. unit_price B. ...” in 📙 Social Studies if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers