Compare commits

...

10 Commits

Author SHA1 Message Date
Captain ALM a593761b2d
Fix repo. 2022-11-30 20:39:17 +00:00
Captain ALM 83f2bd5d5d
Test datetime. 2022-11-30 20:17:20 +00:00
Captain ALM d6c6b781d5
Test modules. 2022-11-30 19:59:03 +00:00
Captain ALM 8fc8c48ff3
Test iteration. 2022-11-30 19:52:29 +00:00
Captain ALM e699ebf017
Test classes with diamond inheritance. 2022-11-30 19:37:43 +00:00
Captain ALM 5bc4e53553
Test classes. 2022-11-30 19:26:02 +00:00
Captain ALM 5a45ee6aab
Test lambda. 2022-11-30 19:13:17 +00:00
Captain ALM 75dfd6babb
Test opt args. 2022-11-30 19:04:49 +00:00
Captain ALM cf05396f70
Test many keyed args for func def. 2022-11-30 19:03:29 +00:00
Captain ALM c83fb46d2f
Test may args for func def. 2022-11-30 19:01:49 +00:00
3 changed files with 16 additions and 7 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
__pycache__/
.pyc
.env
.key

14
main.py
View File

@ -1,7 +1,7 @@
#Test While else
x = 0
while x < 10:
print(x)
x += 1
else:
print("Bye")
import mymodule as m
x = m.gtime()
print(x.year)
print(type(x))
print(x.strftime("%A"))
y = m.mdate(2022, 11, 30)
print(y)

5
mymodule.py Normal file
View File

@ -0,0 +1,5 @@
from datetime import datetime as dt
def gtime():
return dt.now()
def mdate(y, mo, d):
return dt(y, mo, d)