+2 votes
in Python by

Which of the following is an invalid variable?

a) my_string_1

b) 1st_string

c) foo

d) _

1 Answer

0 votes
by

b) 1st_string

Variable names should not start with a number.

Related questions

+1 vote
asked Jan 30, 2022 in Python by sharadyadav1986
0 votes
asked Sep 4, 2021 in Python by SakshiSharma
...