Slicing pulls out part of a string by position, and in checks whether some text appears inside another string. Practice both.
You're given a single word. Pull pieces out of it and test what it contains.
Your tasks
Given this starting value:
1. Slice the first 4 characters and store them in start
2. Slice the last 3 characters and store them in end
3. Check whether "gram" is in word and store the result (True/False) in has_gram
4. Print start, then end, then has_gram, one per line
Expected output
Constraints
- Use slicing (
word[...]) for start and end — do not hard-code the substrings
- Use the
in operator for has_gram
- No external libraries