Your First Program

Let's start off by creating a short program that displays "Hello world!".
In Python, we use the print statement to output text:
py
>>> print('Hello world!')
Hello world!

Congratulations! You have written your first program. 

Note the >>> in the code above. They are the prompt symbol of the Python console (interactive mode).

ℹ Run, Save and Share your First Python Program with everyone

Printing Text

The print statement can also be used to output multiple lines of text.
For Example:
py
>>> print('Hello world!')
Hello world!
>>> print('Hello world!')
Hello world!
>>> print('Spam and eggs...')
Spam and eggs...
ℹ Python code often contains references to the comedy group Monty Python. This is why the words, "spam" and "eggs" are often used as placeholder variables in Python where "foo" and "bar" would be used in other programming languages.



Thank you so much for reading this blog. For more great stuffs and Knowledge don't forget to subscribe this website. Till then Stay Safe Stay At Home

For any query or doubt you can also contact me at divyanshu.singh144400@gmail.com