Posts

Showing posts from September, 2020

Python print() function

 What is Python Print Function?      To print any message in console we use print() . Its syntax is print(str). Here the str can be a variable or a normal string with single/double-quotes.  Code:      str = "Hello World 1"      print("Hello World 2 !!")      print(str) Output:     Hello World 2 !!     Hello World 1 Attributes: print()  function has attributes that are as follow-           print(object, end='\n', sep=' ') end='\n' -  Optional. Specify what to print at the end. Default is '\n' (newline) sep=' '  -  Optional. Specify how to separate the objects, if there is more than one. Default is ' '. Print() in Python 2 & Python 3: In Python 2, print was not a function it was a keyword that doesn't require parenthesis '()' & in Python 3 the print keyword change to   the print() function. There are a lot of changes in Python 3 compare to Python 2. Follow for more such content related to Coding Stu

About Python

Image
History Of Python:-                     Python  is a widely used general-purpose, high-level programming language. It was initially designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code.

IDE's for python

Image
  5 BEST Python IDE's :-               An integrated development environment ( IDE ) is software for building applications that combines common developer tools into a single graphical user interface (GUI).