-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab3-2.py
More file actions
46 lines (36 loc) · 949 Bytes
/
lab3-2.py
File metadata and controls
46 lines (36 loc) · 949 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
n = 29
if n>19 :
print("우리 영혀니는 열아홉쨜인데...;;")
print("후엥ㅠㅠ")
elif n==19 :
print("딩동댕! 영혀니는 열아홉살이에용~!")
else :
print("우엥 아닌데유")
a=28
b=28.0
print(a == b)
print(id(a)==id(b)) #주소값 비교
print(a is b) #주소값 비교
print(a is not b) #주소값이 다르면 true
# if n>=10 :
# print("test")
# print("test2")
# else:
# print("test3") #error
#if모두 출력됨
if n>=19 :
print("우리 영혀니는 열아홉쨜인데...;;")
if n==19 :
print("딩동댕! 영혀니는 열아홉살이에용~!")
#elif는 출력 안됨
if n>=19 :
print("우리 영혀니는 열아홉쨜인데...;;")
elif n==19 :
print("딩동댕! 영혀니는 열아홉살이에용~!")
score = 78
if 70<=score<80 :
pass
elif 60<=score<70 :
print("C")
if score == 80 : print("80")
print("hi") #얘sms whrjs