twhipple / Code_Challenge_Mexican_Wave

This is a level 6 kyu Codewars challenge that mimics a stadium wave across strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Challenge:

This is the best picture I can get of people looking like they are doing the 'wave'. Source: Taylor Rooney, Upsplash.com

Code_Challenge_Mexican_Wave

This is a level 6 kyu Codewars challenge that mimics a stadium wave across strings. In this Repo I will code show how it is possible to turn a fun, physical activity, into a visual effect over a given string.

The wave (known as the Mexican wave in the English-speaking world outside North America) is an example of metachronal rhythm achieved in a packed stadium when successive groups of spectators briefly stand, yell, and raise their arms. Immediately upon stretching to full height, the spectator returns to the usual seated position.

The result is a wave of standing spectators that travels through the crowd, even though individual spectators never move away from their seats. In many large arenas the crowd is seated in a contiguous circuit all the way around the sport field, and so the wave is able to travel continuously around the arena; in discontiguous seating arrangements, the wave can instead reflect back and forth through the crowd. When the gap in seating is narrow, the wave can sometimes pass through it. Usually only one wave crest will be present at any given time in an arena, although simultaneous, counter-rotating waves have been produced. (Source Wikipedia)

**

Task

In this simple Kata your task is to create a function that turns a string into a Mexican Wave. You will be passed a string and you must return that string in an array where an uppercase letter is a person standing up.

Examples:

wave("hello") => ["Hello", "hEllo", "heLlo", "helLo", "hellO"]

Additionally

This kata was written by: adrian.eyre

Thank you to Codewars for helping me practice my Python skills.

Another picture of people 'waving' - sort of. Source: Jimmy Conover

About

This is a level 6 kyu Codewars challenge that mimics a stadium wave across strings.

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 100.0%