Ask Question
6 March, 23:46

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

+3
Answers (2)
  1. 7 March, 00:08
    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. 7 March, 00: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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers