[Learning Python] Strengths of people who dislike peppers for / else / continue / format

I haven't really liked peppers since I was a kid. .. .. Practice basic Python grammar while writing code that avoids eating peppers.

for vegitable in ['carrot', 'green pepper', 'lettuce', 'onion', 'garlic']: if vegitable == 'green pepper': continue print(f"I ate {vegitable}.") else: print('I love vegitables!')

Recommended Posts

[Learning Python] Strengths of people who dislike peppers for / else / continue / format
What kind of environment should people who are learning Python for the first time build?
2016-10-30 else for Python3> for:
The first step of machine learning ~ For those who want to implement with python ~
Learning flow for Python beginners
Python learning plan for AI learning
Checkio's recommendation for learning Python
Python techniques for those who want to get rid of beginners