Python
Python
Python is one of the most popular programming languages in the world. It’s widely used in web and
game development, data analytics, data science, machine learning, and much more. It was
created by Guido van Rossum, and released in 1991.
Python has a simple syntax, which means that it’s easier to learn. In this course you’ll start coding
your own programs in no time, so you can solve real-world problems and build your own
applications.
Q: What’s a programming language?
(i) A language used by machines to communicate with aliens
(ii) A language used by humans to communicate with machines
Python Comments
Comments can be used to explain Python code.
Comments can be used to make the code more readable.
Comments can be used to prevent execution when testing code.
# This is a single-line comment
print("Hello, World!") # This is also a comment
"""
This is a multi-line comment or docstring.
It can span multiple lines and is often used
to provide documentation for code.
"""
print(name) # John
print(age) # 25
print(salary) # 25800.6
var = 10
print(var) # 10
# print its type