Create a method that splits any given String into an array of substrings called N-Grams with the length n. If the characters do not fill the last substring up to n, fill it up with '*'. code example
Example: extract n grams from text python
from nltk import ngrams
sentence = 'this is a foo bar sentences and i want to ngramize it'
n = 6
sixgrams = ngrams(sentence.split(), n)
for grams in sixgrams:
print grams