Let’s take a look at the classic FizzBuzz problem. First in Python:
Now look at how both languages handle FizzBuzz with arrays. Python first:
And in Swift:
I am loving Swift so far. In something basic like a FizzBuzz maybe knowing Python has helped out a bit.