Ask Question
13 January, 14:25

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. 13 January, 14:35
    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.
  2. 13 January, 17:15
    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.
Know the Answer?
Not Sure About the Answer?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers