100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary PYTHON

Rating
-
Sold
-
Pages
3
Uploaded on
27-04-2023
Written in
2022/2023

PYTHON", is a popular high-level, interpreted programming language that is used for a wide range of applications such as web development, data analysis, artificial intelligence, and scientific computing. Here are some essential concepts and syntax to get you started.It comprises operators variables. The operator includes arithmetic and logical operators.It also includes Conditional Statements (basics).

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
April 27, 2023
Number of pages
3
Written in
2022/2023
Type
Summary

Subjects

Content preview

PYTHON



|•"PYTHON", is a popular high-level, interpreted programming language that is used for
a wide range of applications such as web development, data analysis, artificial
intelligence, and scientific computing. Here are some essential concepts and syntax to
get you started.
PYTHON

To print a message in Python, use the `print()` function:

```python
print("Hello, World!")
```
|•VARIABLES
In Python, variables are dynamically typed. This means that you do not have to specify
the data type when you declare a variable. For example:

°|•PYTHON
message = "Hello, World!" # A string variable
x = 42 # An integer variable
y = 3.14 # A float variable
```

|• OPERATORS

Python supports a wide range of operators, including arithmetic, comparison, and
logical operators. Here are some examples:

|•Python
x = 10
y = 3

|•Arithmetics Operators
print(x + y) # Addition
print(x - y) # Subtraction
print(x * y) # Multiplication
print(x / y) # Division
print(x % y) # Modulus
print(x ** y) # Exponentiation

|•Comparison Operators
print(x == y) # Equal to
print(x != y) # Not equal to
print(x > y) # Greater than
print(x < y) # Less than
print(x >= y) # Greater than or equal to
print(x <= y) # Less than or equal to

|•Logical Operators
a = True
b = False
print(a and b) # Logical AND
print(a or b) # Logical OR
print(not a) # Logical NOT
```

|•Conditional Statements

In Python, conditional statements are used to execute certain code blocks based on the
condition. The syntax is as follows:

|•Python
if condition:
# Code block to execute if the condition is True
else:
$5.19
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
zunairsharif345

Get to know the seller

Seller avatar
zunairsharif345
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
8
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions