Open a 'file.txt' in 'w' mode using the with context manager and under 'with' use a write('snail') method.