Python
Python is one of the most popular programming languages. It’s simple to use, packed with features and supported by a wide range of libraries and frameworks. Its clean syntax makes it beginner-friendly.
- A high-level language, used in data science, automation, AI, web development and more.
- Known for its readability, which means code is easier to write, understand and maintain.
- Backed by strong library support, we don’t have to build everything from scratch.
Python2 vs Python3
Using CLI Practiced
Datatype str(intro):
String:
Strings are used to store text data. A string is represented using the str class and can be created using single, double or triple quotes.
s = 'Welcome Kamalesh!'
print(s)
print(type(s))
Output:
Welcome Kamalesh!
<class 'str'>
Print function
Python print() function prints the message to the screen or any other standard output device. In this article, we will cover about print() function in Python as well as it's various operations.
Example:
name = "Kamalesh"
age = 22
print("Name:", name)
print("Age:", age)
Output:
Name: Kamalesh
Age: 22
References:
https://www.geeksforgeeks.org/python/python-output-using-print-function/
https://www.interviewbit.com/blog/difference-between-python-2-and-3/


Top comments (0)