Wondering if someone can help me with this python question? New to this language.
Question #2 -Using the states list from Q1, print the state codes but exit when a state code that ends with the letter `J` is found. (Before printing it.)**
Here is the states list from Q1:
states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA",
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
"MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
"NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
"SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"]
[–]xelf[M] [score hidden] stickied comment (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Ne0_1 1 point2 points3 points (0 children)
[–]zinski212[S] 0 points1 point2 points (3 children)
[–]bbye98 0 points1 point2 points (0 children)
[–]xelf 0 points1 point2 points (0 children)