Python print() function The print() function in Python is used to print a specified message on the screen. The print command in Python prints strings or objects which are converted to a string while printing on a screen. Syntax : print(object(s)) How to Print a simple String in Python? More often than not you require to Print strings in your coding construct. Here is how to print statement in Python 3: Example: 1 To print the Welcome to FutureCode, use the Python print statement as follows: print ("Welcome to FutureCode ") Output: Welcome to FutureCode In Python 2, the same example will look like print "Welcome to FutureCode" Example 2: If you want to print the name of five countries, you can write: print("USA") print("Canada") print("Germany") print("Fran...
Learn Machine learning and AI using python