Skip to content

Commit 1587f68

Browse files
Using BuiltIn Module In Python
0 parents  commit 1587f68

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.DS_Store

6 KB
Binary file not shown.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Using in-built module in Python
2+
3+
import random
4+
5+
print(random.randint(1,100))
6+
print(random.randint(1,100))
7+
print(random.randint(1,100))
8+
print(random.randint(1,100))
9+
print(random.randint(1,100))
10+
11+
import datetime
12+
13+
print(datetime.datetime.now())
14+
print(datetime.datetime.now().year)
15+
print(datetime.datetime.now().day)
16+

output/output.png

856 KB
Loading

0 commit comments

Comments
 (0)