Python tutorial - 1 (Your 1st python3 program)

Python3 Tutorial - 1

-----------------------------------------------------------------------------------------





so, in this tutorial we will be talking about python3 basic syntaxes, their functions and their applications.

Note: NO PRIOR PROGRAMMING EXPERIENCE IS REQUIRED TO ENTER.

now, lets move to writing a hello world program in your computer.

Note: you should have python3 installed in your computer to write these programs.

You can install python3 on your machine from python.org.

Now:
follow the steps:
-----------------
1. open your python idle.
2. type in      print('hello, world').
3. hit enter or return if you are using Mac.
-----------------


if you have followed the steps, you would see: hello, world.
which means that you have written your first python3 program...
CONGRATULATIONS !



lets understand:
-------------------
what you did was a command instructing the computer to to display the specified text b/w the single quotes (you can also use "").
-------------------


thus, print() function prints the command b/w the 2 brackets.


lets take another example:

this can be done using variables.
[wait what are variables ?]

---------------
variables are like boxes which contain some data with a label tag on the boxes.
---------------

like:



here:
command is a variable which stores the data "hello, world".
and when printing variables, we don't use quotes.


also:
the statements with # in them are called comments which are not read by the compiler when running code.
these are used by coders to remember what & why they wrote the code when they see it after a long time.


so, enough for today...
I will meet you in the next tutorial,
till then, have fun with variables !

Comments