- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBasicOperators.py
More file actions
Latest commit
27 lines (23 loc) · 522 Bytes
/
Copy pathBasicOperators.py
File metadata and controls
27 lines (23 loc) · 522 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#-*- coding: utf-8 -*-
#Basic Operators
# Is used on operations in general
print("+ | Addition")
print("- | Subtraction")
print("* | Multiplication")
print("/ | Division")
print("** | Exponentiation")
print("% | Module")
print("= | Atribution Operation")
#Relationaly Operators
# Is used in comparison operations
print("== | Same")
print("!= | Different")
print("> | Larger")
print("< | Minor")
print(">= | Larger or Same")
print("<= | Division")
x=2
y=3
print(x>y) #False
print(y>x) #True
print(x==y) #False