-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
56 lines (38 loc) · 1.11 KB
/
Copy pathex3.py
File metadata and controls
56 lines (38 loc) · 1.11 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
__author__ = 'Administrator'
dollars = 8
print(dollars == 8.0)
# print(8 = dollars)#<- ana8esh timhs..OXI elegxos isothtas!!!!
print(dollars != 8)
print(8 >= dollars)
print('----------------------------')
cents = 34
print(not not cents >= 33)
print(cents ==34 and cents < 20)
print(not cents * 2 > 34)
print(not cents < 12)
print('------------/-/---/-/-/-/-/--/-----------------')
dollars = 18
cents = 53
print(not dollars == 18 or not cents == 53)
print(dollars == 10 or not cents != 53)
print((not dollars == 18) or cents == 53)
print(not (dollars < cents and dollars > 0))
print('------------/-/---/-/-/-/-/--/-----------------')
x = 6
print(8 > x >= 5)
print('------------/-/---/-/-/-/-/--/-----------------')
age1 = input("How old are you? ")
age2 = input("How old is your best friend? ")
print(type(age1))
print(type(age2))
print('age1 = ' + age1 + ' and age2= ' + age2)
x = int(age1)
y = int(age2)
print(str(x + y))
print('------------')
print(int(age1) + int(age2))
print('------------')
print(age1 + age2)
print('------------')
print(int(age1 + age2))
print('------------/-/---/-/-/-/-/--/-----------------')