please give me a code for finding bigrams in a given file.
example .. if the word is I AM AN OLD MAN..
output should be in a list as [I AM] [AM OLD] [OLD MAN].
i have seen some programs but its giving bi grams of a word.
i would like to get the bigrams in a sentence.

This forum is not an online homework service. We can help with issues in your implementation of the problem. Show some effort and post your attempts to find the bigrams.