When sending or receiving strings in nim, I'm not sure how to slice the part of
the string I want to use.
Example in python:
import os
enter_some_characters = input(str("Enter a string of 10 characters > "))
first_group_of_characters = enter_some_characters[:5]
second_group_of_characters = enter_some_characters[5:]
print("First group of characters:", first_group_of_characters)
print("Second group of characters:", second_group_of_characters)
Run
Trying to do this in nim to slice the characters but not finding the
information about how to do it.
Thanks