Output (print) Input function.


 To display or print message on standard i/o we use print function.

SYNTEX: 

To print specific character.
print("Character")





To print variable assuming variable name / id is name.
print(name)


To get input data. input()
variable-name=input("Message to display")


Data collected will be saved as value for variable-name



to print collected data we can use print(variable-name)




Note:

print statement with " " quote print string. If there is no quote it is consider as variable.
So print("name") will print character name, while print(name) will print value of variable name. 








Comments

Popular posts from this blog

Computer Programming Brief History.

Loop: for & range

How to install Deepseek R1 local machine.