PYTHON
So what is Python?
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
It is used for:
1.web development (server-side),
2.software development,
3.mathematics
4.system scripting.Python can be used on a server to create web applications.
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.
Creating a Comment
Comments in Python start with #. In the moment that python is going to se # anything behind is going to be ignored.
Example:
#This is a comment
print("Hello, World!")
So if we put # the python is going to ignore the text,mesage or anything else that is going to wrrite the programmer
and in our case the sentence"#This is a comment" is going to be ignore from python.
Python Numbers
There are three numeric types in Python:
int
float
complex
Variables of numeric types are created when you assign a value to them:
Example:
x = 1 # int
y = 2.8 # float
z =z = 1j # complex
To verify the type of any object in Python, use the type() function:
Example:
print(type(x))
print(type(y))
print(type(z))