Which following variable is valid in Python , try,123hello,sum,abc@123? justify
Answers
Answered by
2
Python & try are valid variables.
Justification:-
- try is keyword and cannot be used as variable
- 123hello starts with digit and thus invalid variable
- abc@123 contains special symbol which cannot be used in naming variables
Answered by
0
Answer:
Explanation:
try : is a keyword can’t be used as an identifier. 123 Hello : Variable names can’t start with a digit. abc@123 : Special characters aren’t allowed in variable names. Only sum is valid for variable name
Similar questions