Q. Write a program to print an acrostic poem as shown below :-
In the output you need not print bigger letter for P E A C E, but make sure these letters make a vertical word in the output.
Answer
=
print("These things I have sPoken unto you,\n that in me yE might have peace.\n In the world ye shAll have tribulation :\n but be good Cheer ;\n I have overcomE the world ")
Output :-
These things I have sPoken unto you,
that in me yE might have peace.
In the world ye shAll have tribulation :
but be good Cheer ;
I have overcomE the world
>>>
Not getting the required output
ReplyDeleteCopy this code as it is . Then you found required output.....
DeleteCopy this code as it is. Then you see that 1st sentence has the maximum number of characters before 'P' i.e. at 22nd position;
DeleteYou will have remove extra spaces from the each line after pasting the above code. For e.g, when you will paste the you will realise that in 2nd line, E is coming at 29th position, hence delete 7 extra spaces.
bhai i have got the solutions only on your blogspot thanks for it but if you can provide download file for solutions it will be much help of us .Thanks!!
ReplyDeleteIt will come very soon .
DeleteBrother thank u very much
ReplyDeleteWelcome : )
Deletefinally a site where i have the solutions but please give all the solutions
ReplyDeleteI am upload all solution wait for some days : )
Deletethank u sir your site helped very much...☺☺☺
ReplyDeleteWelcome : )
Deletethank you bahiya you made my day :">
ReplyDeleteGod may bless you with 100 years of life
Welcome : )
DeleteSir plz upload the pdf of book too
ReplyDeleteWhich pdf.
DeleteThank you
ReplyDeleteWelcome : )
DeleteHow to write
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )