Python print() funtion

Karthik Guna - Jul 8 - - Dev Community

I am learned python basic concept today.
share you what i learned today with example.

The name as it is print what you entered inside print function.

Ex : print("Hello")
Enter fullscreen mode Exit fullscreen mode

In additionally you can pass variables like string or integer or other data types.

anime1 = "dragon ball"
anime2 = "naruto"
Ex : print("which anime do you like ? a=", anime1, " or b=", anime2)
Enter fullscreen mode Exit fullscreen mode
.