0% found this document useful (0 votes)
3 views

An Overview of Python

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

An Overview of Python

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

An Overview of Python

Python is a versatile programming language used for diverse


applications, from web development and data science to
machine learning and scripting. Its readability, flexibility, and
extensive libraries make it popular among beginners and
experienced programmers alike.

by Heydər Abdullayev
Downloading Python
Official Website Installation

Visit the official Python website at python.org. Follow the on-screen instructions to install Python
Navigate to the downloads section to find the on your machine. Ensure you have the latest
appropriate version for your operating system. version for compatibility with libraries and
packages.
Numeric Data Types
Integers Floating-Point Complex
Whole numbers without Numbers with decimal Numbers with both real and
decimal points (e.g., 10, -5, points (e.g., 3.14, -2.5, 1.0). imaginary components
0). (e.g., 2 + 3j).
Integer Operations
Addition (+) Subtraction (-)
Adds two integers Subtracts one integer
together. from another.

Multiplication (*) Division (/)


Multiplies two integers. Divides one integer by
another.
Floating-Point
Operations

Addition (+) Subtraction (-)


Adds two floating-point Subtracts one floating-point
numbers together. number from another.

Multiplication (*) Division (/)


Multiplies two floating-point Divides one floating-point
numbers. number by another.
Rounding and
Truncation
1 Round()
Rounds a floating-point number to the nearest
integer.

2 Truncate()
Removes the decimal part of a floating-point
number, leaving only the integer part.
Mathematical Functions
abs()
Returns the absolute value of a number.

pow()
Calculates the power of a number to a given exponent.

sqrt()
Returns the square root of a number.

max()
Finds the maximum value among multiple numbers.

min()
Finds the minimum value among multiple numbers.
Trigonometric Functions
sin()
1 Calculates the sine of an angle.

cos()
2
Calculates the cosine of an angle.

tan()
3
Calculates the tangent of an angle.

arcsin()
4
Calculates the arcsine of a value.

arccos()
5
Calculates the arccosine of a value.
Exponential and Logarithmic Functions
exp()
1
Calculates the exponential of a number (e^x).

log()
2
Calculates the natural logarithm of a number (ln(x)).

log10()
3 Calculates the base-10 logarithm of a number
(log10(x)).
Conclusion and Key Takeaways

1 2 3
Versatility Data Handling Libraries
Python excels in numeric Python efficiently handles various Leverage powerful libraries for
computations, enabling a wide numeric data types and performs advanced numerical analysis and
range of mathematical operations. complex calculations. scientific computing.

You might also like