We continue to learn programming. After the second chapter in the book: Michael Dawson “We Program in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I studied the features of working with text in the Python programming language, tasks were offered. Let’s do them together. I will give my solution, and you write your options in the comments.
1) Come up with two lists: valid and invalid variable names. Explain why each of the names is valid or not valid, respectively. Then come up with two more lists—of “good” and “bad” valid names—and explain your choice.
Valid variable names: name, price, password, age, size (these can be any words that are not reserved in the programming language for functions / operators)