Question: so this is a code in python, I know what .isalpha does, I just have a general question, why do we have to put the

 so this is a code in python, I know what .isalpha

so this is a code in python, I know what .isalpha does, I just have a general question, why do we have to put the for statement inside the curly brackets in this case, or when do we put the for statement inside the curly brackets?

variables ={ var for var in variables if var.isalpha() }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!