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

>>>

18 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Not getting the required output

    ReplyDelete
    Replies
    1. Copy this code as it is . Then you found required output.....

      Delete
    2. Copy this code as it is. Then you see that 1st sentence has the maximum number of characters before 'P' i.e. at 22nd position;

      You 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.

      Delete
  2. 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!!

    ReplyDelete
  3. finally a site where i have the solutions but please give all the solutions

    ReplyDelete
    Replies
    1. I am upload all solution wait for some days : )

      Delete
  4. thank u sir your site helped very much...☺☺☺

    ReplyDelete
  5. thank you bahiya you made my day :">
    God may bless you with 100 years of life

    ReplyDelete
  6. Sir plz upload the pdf of book too

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post