-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpythonScriptOne.py
More file actions
39 lines (32 loc) · 1.35 KB
/
Copy pathpythonScriptOne.py
File metadata and controls
39 lines (32 loc) · 1.35 KB
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
28
29
30
31
32
33
34
35
print("I'm execute the Python code")
print("so whatch it")
print("Autor: @Oscar Suarez Nava\n")
#create a variable , to create a
color = "blue"
print(color+"\n");
#here is the table of available aritmethic operations:
'''
a + b adition SUM of a and b
a - b Subtraction Diference of a and b
a * b Multiplication Product of a and b
a / b True division Quotient of a and b
a// b Floor division Quotient od a and b , removing fractional parts
a % b Modulus Integer remainder after division
a ** b Exponentation a raised to the power of b
-a Negation The negative of a
'''
numberOne=5
numberTwo=20
print("------ TEST OF OPERATORS ARITMETICS------")
res_sum = "the result of "+ str(numberOne) +" + "+ str(numberTwo) +" is " + str(numberOne+numberTwo)
print(res_sum)
res_rest = "the result of "+ str(numberOne) +" - "+ str(numberTwo) +" is " + str(numberOne-numberTwo)
print(res_rest)
res_mult = "the result of "+ str(numberOne) +" * "+ str(numberTwo) +" is " + str(numberOne*numberTwo)
print(res_mult)
res_div = "the result of "+ str(numberOne) +" / "+ str(numberTwo) +" is " + str(numberOne/numberTwo)
print(res_div)
res_doublePai = "the result of "+ str(numberOne) +" //"+ str(numberTwo) +" is " + str(numberOne//numberTwo)
print(res_doublePai)
res_doubleMult = "the result of "+ str(numberOne) +" **"+ str(numberTwo) +" is " + str(numberOne**numberTwo)
print(res_doubleMult)