Select the correct answerWhich of the following is an invalid variable?Options1code_tantra_codecode_tantra_1
Question
Select the correct answerWhich of the following is an invalid variable?Options1code_tantra_codecode_tantra_1
Solution
The correct answer is 1code_tantra. In Python, a variable name cannot start with a number.
Similar Questions
Which of the following is an invalid variable?Optionscode_tantra_1code_1code_tantra
Select the correct answerWhich of the following is invalid?Options_c = 1__cod__ = 1none of the mentioned__c = 1
Select the correct answerWhich of the following is not a valid variable name in C?Options123variablemyVariable_variablevariable123
Select the correct answerWhat will be the output of the following Python code?>>>ct1="codetantra">>>ct1[:3]>>>Optionscododetacodetantrade
Select the correct answerWhat will be the output of the following Python code?print("code. TANTRA".capitalize())Optionscode. tantraCode. tantraAbc. DefCODE. TANTRA
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.