write a program to read a text file and print alternate words from the file in python.
Answers
Answer:
Input:
Input:I am R2J!
Input:I am R2J!Output:
Input:I am R2J!Output:I
Input:I am R2J!Output:Iam
Input:I am R2J!Output:IamR2J!
Input:I am R2J!Output:IamR2J!Input:
Input:I am R2J!Output:IamR2J!Input:Geeks 4 Geeks
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4Geeks
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAnd
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndin
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndinthat
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndinthatdream,
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndinthatdream,we
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndinthatdream,wewere
Input:I am R2J!Output:IamR2J!Input:Geeks 4 GeeksAnd in that dream, we were flying.Output:Geeks4GeeksAndinthatdream,wewereflying.