-
Notifications
You must be signed in to change notification settings - Fork 2
/
py.programmer.txt
57 lines (49 loc) · 1.03 KB
/
py.programmer.txt
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
#!/usr/bin/python3
import time
t = time.localtime(time.time())
localtime = time.asctime(t)
str = "Current Time:" + time.asctime(t)
print(str);
print("hello world")
print('What is your name?')
print('How are you today?')
print('come to join me')
print('be my friends')
print('& nice to see you')
txt = "love python programming"
print("love" in txt) # true
txt = "love python programming"
print("hello" in txt) # false
site = ["https://github.com/sjemy2210", "https://code.dcoder.tech/sjemy"]
print(site)
person = {
"first_name": "jemy",
"last_name": "Setiawan",
"age": 43
}
print(person)
user = {
"manager": {
"name": "Jemy seriawan",
"age": 43
},
"programmer": {
"name": "Jemy Setiawan",
"age": 43
}
}
user = {
"manager": {
"name": "Jemy setiawan",
"age": 43
},
"programmer": {
"name": "Jemy setiawan",
"age": 43
},
}
print(user["manager"]["name"])
print(user["programmer"]["name"])
import datetime
now = datetime.datetime.now()
print(now)