-
Notifications
You must be signed in to change notification settings - Fork 0
/
Introduction.py
61 lines (52 loc) · 1.16 KB
/
Introduction.py
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
51
52
53
54
55
56
57
58
59
60
#n=3
#print(2<n<5)
#data = [['a',10],['b',50],['c',31],['d',20]]
#
#print('data awal = ', data)
#print(sorted(data, key = lambda x:x[1])[-2])
#def fungsi(**kwargs):
# print(*args)
#
#def fungsi_arg(a,b,c):
# print(a,b,c)
#
#a=[0,2,4]
#fungsi_arg(a)
#d={} #1
#for _ in range(int(raw_input())): #2
# Name=raw_input() #3
# Grade=float(raw_input()) #4
# d[Name]=Grade #5
#v=d.values()#6
#second=sorted(list(set(v)))[1] #7
#second_lowest=[] #8
#for key,value in d.items(): #9
# if value==second: #10
# second_lowest.append(key) #11
#second_lowest.sort() #12
#for name in second_lowest: #13
# print(name) #14
#a,b,c = student_marks[query_name]
#print('%.2f'%((a+b+c)/3))
#from urllib import response
#import requests
#response=requests.get('https://www.greetingsapi.com/random')
#json_data = response.json()
#print(json_data)
#response=requests.post('https://jsonplaceholder.typicode.com/posts',
# data={
# 'title': 'foo',
# 'body': 'bar',
# 'userId': 1,
# }
#)
#
#print(response.text)
#assert = mengecek input benar/salah
x=5
#assert x>2, 'x lebih kecil dari 2'
if x>2:
pass
else:
raise AssertionError['x lebih kecil dari 2']
print(x)