Python Exercises for Practice - Exercise 2

 Solution of the Python problem! 

Now, this is the Question-
from Python Basic: Exercises, Practice, Solution - w3resource

Here's the Input which I did (CODE)-


So I coded this String inside the Triple Quotation Mark (''' ''') because that gives us exact value (Format of text) as we had given to print.


The Output-

output of my code



print("Twinkle, twinkle, little star, \n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a diamond in the sky. \nTwinkle, twinkle, little star, \n\tHow I wonder what you are!")  


Thanks;)

Comments

Popular posts from this blog

Python Exercises for Practice - Exercise 1

Python Exercises for Practice - Exercise 3