How to start writing code or programming in the python language

python is very easy to learn it has many libraries to work it is a high-level language, interpreted to mean its check error line by line, in this article we learn how to write a program or code in python language, the input is your code that you write and output is the result of your coding, here we study small codes and its explanation

Simple coding or programs

simple coding in python
simple coding in python

To print a string or text that you want we use the print() function

As you can see how can we use the print function, make sure whatever you want to show on your screen is on commas like the above example we have to print hello readers these 2 words are in commas( “hello readers”) so only these are visible to the output screen.

If you want the user to give an answer/will text or you want to text after the code we use here input() function

To get input from users interactively, you can use the built function

Example: name= input(“what is your name”)

An input function always returns string type. Python offers two functions int() and float() to be used with input() to convert the values received through input() into int() and float() types.

Input() is used for reading the value

Int() and float() function used with the read value to change the type of input value to int means integer and float means decimal value.

Example:

For int

Number=int(input(“enter a number:))

For float

Number=float(input(“enter a number:))

also read_BAREBONES OF A PYTHON PROGRAM

how did we start coding in python ?

you have to know about syntax or errors in python while writing code, and also learn the concepts behind codes.

where we can start coding which platform or website ?

you can use an online compiler which is readily available on google or you can download the python application or Jupiter notebook

what would our first step to start coding in python?

try to print your messages or name and also try to print something in integer and then make small programs like addition, subtraction, etc