I found an interesting problem on https://www.codewars.com/kata/587731fda577b3d1b0001196:
```if-not:swift
Write simple .camelCase method (`camel_case` function in PHP, `CamelCase` in C# or `camelCase` in Java) for strings. All words must have their first letter capitalized without spaces.
```
```if:swift
Write a simple `camelCase` function for strings. All words must have their first letter capitalized and all spaces removed.
```
For instance:

```python
camelcase("hello case") => HelloCase
camelcase("camel case word") => CamelCaseWord
```
```c#
using Kata;

"hello case".CamelCase(); // => "HelloCase"
"camel case word".CamelCase(); // => "CamelCaseWord"
```

Don't forget to rate this kata! Thanks :)

I tried it in Python, but could not do it. Can you solve it?
def camel_case(string):
    #a = [string.split()]
    a = list(string)
    for i in range(0, len(a)):
        if i==0 or a[i-1]==' ':
            a[i] = a[i].upper()
    return ''.join(a).replace(' ','')