Skip to content

Printstatement.md #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions 002-Print.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The very first thing that is worth learning in Python is the print function. Thi
## What does it do?

Typing out print, followed by parentheses(), is the function that places your content onto the screen, allowing you to see the results of your code.

I.e(after you might have finished coding a particular program,you use the print statement+whatever you want to print, to display your output)
## Open your text editor

Which text editor are you using? Whatever one you have chosen to use, make sure it is set up to use, display and run Python code. For my examples and in all of the following files I will refer to my own chosen text editor, Visual Studio Code. Ensuring VS Code is set up for optimal Python usage is a job in itself, so please ensure you have followed the instructions for creating your environment first before attempting your first program.
Expand All @@ -15,8 +15,9 @@ Which text editor are you using? Whatever one you have chosen to use, make sure
Let's start your first ever Python program by typing

```python
print("Hello World!")
```
print("Hello World!")now this program after running displays(Hello world)as the output.
If you want to display anything on your program,you should use the (print)statement+the what you want to display in quotation("")


Run your Python code in the terminal or console, or if you're using VS Code, right click and select "Run python file in terminal". This will bring up an inbuilt terminal within VS Code to display the output of your code. Find out how to output Python code on your specific text editor if you're using something different.

Expand Down