Basic input

--Originally published at Codebuster

For us, input can mean something someone else says, and in coding it is not so different. Input is a way to interact with the uer by asking them to assign a value to something.

There can be different kinds of input according to the variable it will store, which can be integers, floats, simple string or so on. You can define what kind of input your user will introduce by defining it when you are writting a code, as follows:

inputatom.PNGinputcygwin

Likewise, if you are going to be using decimals you can specify it by using float

input2atom.PNGinput2cyg

Regardless, for basic handling of the input, like printing it, you can simply write it as

variable= input(“Whatever you want to put”)

thats all folks.gif