asked 222k views
5 votes
True or False:
Function names cannot begin with a number as the first character.

1 Answer

6 votes

Final answer:

True. Function names cannot begin with a number as the first character.

Step-by-step explanation:

True. Function names cannot begin with a number as the first character.

In programming languages, including Python, function names must follow certain rules. They can only start with a letter or an underscore (_). Numbers are not allowed to be the first character. For example, a function name like 2plus2 would be invalid, but a function name like add2numbers would be valid.

answered
User Joris Kluivers
by
8.6k points

No related questions found