Question: I have insert my text file with about 10 lines in the form of a list. Now I want to cut off the firstpart in each line.

To be precise, the first 5 words should be cut off.

How exactly do I have to do this?

Edit:

I have insert my text file:

```
with open("test.txt", "r") as file: 
  list = [] 
  for line in file: 
    list += [line.strip()] 
  print(list) 

```

If i only have one line, this works for me:

```
newlist = " ".join(list.split(" ")[5:]) 
print(newlist) 

```

But how can I do this with a list (10 lines)

Answer: 
You can't exclude files from code coverage report directly in Xcode.
You can use external tools like [xcov](https://github.com/fastlane-community/xcov) or [slather](https://github.com/SlatherOrg/slather) to generate HTML version of report and set list of excluded files in its config file.
you can use the built in one `llvm-cov` and you can specify it with the `--ignore-filename-regex` parameter.

here is an example (and a demo project):

<https://github.com/michaelhenry/swifty-code-coverage>

with the coverage that you get from llvm-cov, you can have the option to display it in the stdout or a file or just push it somewhere like codecov or codeclimate

here is the file to be exact

<https://github.com/michaelhenry/swifty-code-coverage/blob/main/lcov.sh>

so you can either `report`, `export` or both the code coverage.

```
$ xcrun llvm-cov export --help

```

[![enter image description here](https://i.stack.imgur.com/IASMw.png)](https://i.stack.imgur.com/IASMw.png)

Cheers,