-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
52 lines (30 loc) · 1.09 KB
/
Copy pathex3.py
File metadata and controls
52 lines (30 loc) · 1.09 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
print "I will now count my chikens:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
#tiene mayor precedencia mod que la multiplicacion
print "Now i will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
print "Is it true that 3+ 2 < 5 - 7?"
print 3 + 2 < 5 -7
print "What is 3 + 2?", 3 + 2
print "What is 5 - 7?", 5- 7
print "Oh, that's why it's False."
print "How about some more."
print "Is it grater?", 5 > -2
print "Is it greater or equal?", 5>= -2
print "Is it less or equal?", 5 <= -2
print "I will now count my chikens:"
print "Hens", 25.00 + 30.00 / 6.00
print "Roosters", 100.00 - 25.00 * 3.00 % 4.00
#tiene mayor precedencia mod que la multiplicacion
print "Now i will count the eggs:"
print 3.00 + 2.00 + 1.00 - 5.00 + 4.00 % 2.00 - 1.00 / 4.00 + 6.00
print "Is it true that 3+ 2 < 5 - 7?"
print 3.00 + 2.00 < 5.00 -7.00
print "What is 3 + 2?", 3.00 + 2.00
print "What is 5 - 7?", 5.00- 7.00
print "Oh, that's why it's False."
print "How about some more."
print "Is it grater?", 5 > -2
print "Is it greater or equal?", 5>= -2
print "Is it less or equal?", 5 <= -2