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 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
Get step-by-step solutions from verified subject matter experts
