DEV Community

DDSRY
DDSRY

Posted on • Updated on

Can i make a variable like this: 4 = 'number' in Python 3.8 ?

▪ No, the 4 is not a valid variable name.

▪ They need to start with a character (letter, word) or underscore _.

▪ so a4, _A4 and a_four would work, but 1 will not.

Top comments (0)