Informatics Practices
Which of the following is a valid variable name?
- 1name
- na*me
- name
- name one
Python Funda
1 Like
Answer
name
Reason — A valid variable name in Python can only contain letters (a-z, A-Z), digits (0-9), and underscores (_). It cannot start with a digit, contain special characters like *, or include spaces. Therefore, "name" is a valid variable name.
Answered By
3 Likes
Related Questions
Define Sequence data type in Python? Give two examples.
The software which is freely available for use but source code may not be available comes under —
- Open-Source
- Firmware Software
- Freeware Software
- Proprietary Software
Anu wants to change the width of a column Author in a Table Library from Varchar(20) to Varchar(30). Which command should she use?
The superimposition of computer-generated perceptual information over the existing physical surrounding is called …………… .