SIMPLE PYTHON BASICS.steemCreated with Sketch.

in #python4 years ago

How to print in python?

Here , we use our special key word called print();

Example

print("hello , world")

 possible out put : hello world

The content you want to print must be phrased in quotes.This is good to keep you going .

How to add two numbers ?

Here , we create variables to store our numbers which we are going to add.Variables are storage locations for data. For example ,think of a bottle as a variable and the water it holds as data .
That is the concept, hope you get it now.

Lets get started. We are going to add 20 and 40.

Code example :

f = 20
s = 40
t = f+s

print(t)

possible output: 60

This is very good to get you started.If there is any mistake , please let me know.
Nice coding.