View recdir.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ReconstructionDir(data=list): | |
dirr = [] | |
for x in dir(data): | |
if "__" not in x: | |
dirr.append(x) | |
return dirr |
View hello_world.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.youtube.com/watch?v=Yw6u6YkTgQ4 | |
''' | |
Hello, world | |
Programmed to work and not to feel | |
Not even sure that this is real | |
Hello, world | |
''' | |
def HelloWorld(program,even_sure): | |
if "to work" in program and "not to feel" in program: |
View multiple_list_to_string.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def MarageListToString(*data_list, categories=None, separated="###"): | |
to_list = [] | |
for xi in range(len(data_list[0])): | |
r = '' | |
for xz in range(len(data_list)): | |
rl = data_list[xz] | |
if categories == None:r += rl[xi] | |
else:r += rl[xz] | |
r += separated | |
to_list.append(r) |
View gist:3e790fd4ff45c4623bd7adf96e8cacfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. | |
Slove: | |
pip install fabric | |
pip uninstall -y cryptography # uninstall 37.0.0 | |
pip install cryptography==36.0.2 |
View cek-bilangan-konsekutif.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#konsekutif | |
p = str(input("masukan bilangan: ")) | |
ls = [] | |
stat = 'konsekutif' | |
stat2 = True | |
xi = p.isnumeric() | |
if xi == True: | |
for x in p: |
View catat pemasukan dan pengeluaran otomatis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PEMASUKAN = {} | |
PENGELUARAN = {} | |
def Catat_pemasukan(bulan,tahun,nominal): | |
if int(nominal) > 0: | |
key = bulan+" "+tahun | |
PEMASUKAN[key] = int(nominal) | |
return key+" +"+nominal | |
def Catat_pengeluaran(bulan,tahun,nominal): |
View implementasi penggunaan data arry di python3 untuk login atm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## contoh implementasi sederhana penggunaan data arry untuk login di atm | |
storageATM = {} | |
cardIDBlockServer = {} | |
cardIDDatabaseServer = { | |
"123456":"1111", | |
"6666":"9999", | |
"3232":"24235346" | |
} |