Pada posting sebelumnya sudah dicontohkan soal pemrograman dalam bahasa Python. Kali ini, akan ditampilkan lagi contoh berikutnya.
Soal:
Buatlah program Python untuk menampilkan pola segitiga siku-siku menggunakan for … in.
Jawab:
Pola 1
* * * * * * * * * * * * * * * * * * * * *
Jawab:
| siku_siku_1.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(0, tinggi-baris):
print("*", end=" ")
print("")
|
Pola 2
* * * * * * * * * * * * * * * * * * * * *
Jawab:
| siku_siku_2.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(0, baris+1):
print("*", end=" ")
print("")
|
Pola 3
*
* *
* * *
* * * *
* * * * *
* * * * * *
Jawab:
| siku_siku_3.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(1, tinggi-baris):
print(" ", end=" ")
for bintang in range(0, baris+1):
print("*", end=" ")
print("")
|
Demikian contoh pola segitiga dalam pemrograman Python. Semoga bermanfaat.
bitcoin dark web tor dark web
darknet markets dark market url
best darknet markets darkmarket list
darknet drug links tor marketplace
drug markets onion dark market link
dark web market darknet market
tor markets 2022 tor markets 2022
tor dark web darkmarket list
darknet drug links darkmarket url
deep web markets dark markets 2022
asap market onion asap market darknet
darkmarket 2022 tor markets 2022
deep web drug store drug markets onion
tor dark web deep web drug links
asap market url best darknet markets
deep web markets darkmarket url
darknet drug store tor marketplace
tor market dark market 2021
dark market 2022 darkmarket
dark market 2021 deep web drug url
darkmarket dark market
dark web market links darkmarket list
deep web drug url dark market list
darknet markets dark market onion
tor dark web darknet market list
deep web markets asap market darknet
dark web sites darknet market links
dark web drug marketplace dark market
tor market url drug markets dark web
tor markets 2021 tor marketplace
deep web markets dark market list
deep web markets dark market url
asap link darknet websites
deep web drug url dark web market
drug markets dark web dark market url
darknet drug store deep web drug links
dark web drug marketplace darkmarket 2022
Wow, tһis article is fastidious, my sister is analyzing sᥙch thingѕ, therеfore I am goіng tto inform
һer.
My blog … leia mais informações
tor markets links darkmarket url
tor markets links drug markets onion
dark web markets deep web drug store
drug markets onion asap market onion
dark market list darknet drug store
darknet markets tor markets links
darknet drug links darknet marketplace
dark market onion dark market 2021
dark web market tor market links
tor markets 2021 darknet market
dark web market dark web markets
darkmarket darknet markets