198k views
4 votes
Which of the following would be the best variable name to store the value of your English letter grade? Python coding

letter_Grade
g
1grade
LG

1 Answer

6 votes

Answer:

The answer is "letter_Grade".

Step-by-step explanation:

In the given question, the first choice "letter_Grade" is correct because it is a descriptive variable, which is used for holding the string value, and the wrong choice can be defined as follows:

  • In the second and third choice, it is wrong because it is not descriptive.
  • In the fourth choice, it is wrong because it uses a number that is not allowed.
User PEPLOVE
by
4.6k points